|
|
@@ -34,22 +34,16 @@ $this->start('subheading');
|
|
|
<?php
|
|
|
$code = <<<PHP
|
|
|
<?php
|
|
|
-Plugin::load('{$plugin}');
|
|
|
+// src/Application.php
|
|
|
+public function bootstrap()
|
|
|
+{
|
|
|
+ parent::bootstrap();
|
|
|
+
|
|
|
+ \$this->addPlugin('{$plugin}');
|
|
|
+}
|
|
|
PHP;
|
|
|
|
|
|
?>
|
|
|
<div class="code-dump"><?php highlight_string($code) ?></div>
|
|
|
|
|
|
-<p class="notice">
|
|
|
- <strong>Loading all plugins: </strong>
|
|
|
- <?= sprintf('If you wish to load all plugins at once, use the following line in your %s file', 'config' . DIRECTORY_SEPARATOR . 'bootstrap.php'); ?>
|
|
|
-</p>
|
|
|
-
|
|
|
-<?php
|
|
|
-$code = <<<PHP
|
|
|
-<?php
|
|
|
-Plugin::loadAll();
|
|
|
-PHP;
|
|
|
-?>
|
|
|
-<div class="code-dump"><?php highlight_string($code) ?></div>
|
|
|
<?php $this->end() ?>
|