Skip to content

Commit

Permalink
fix plugin bootstrapping - no parallel bootstrap.php and `Plugin::b…
Browse files Browse the repository at this point in the history
…ootstrap()`. Config was not loaded as `boostrap.php` was ignored.
  • Loading branch information
passchn committed Aug 5, 2022
1 parent 65ace43 commit 4a14f33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 0 additions & 7 deletions config/bootstrap.php

This file was deleted.

5 changes: 5 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace Assets;

use Cake\Core\BasePlugin;
use Cake\Core\Configure;
use Cake\Core\PluginApplicationInterface;

/**
Expand All @@ -22,6 +23,10 @@ class Plugin extends BasePlugin
*/
public function bootstrap(PluginApplicationInterface $app): void
{
if (file_exists(ROOT . DS . 'config' . DS . 'app_assets.php')) {
Configure::load('app_assets');
}

$app->addPlugin('Josegonzalez/Upload');
}
}

0 comments on commit 4a14f33

Please sign in to comment.