Skip to content

Commit

Permalink
Adjusted to work with changes in plugin-installer
Browse files Browse the repository at this point in the history
  • Loading branch information
jamielsharief committed Oct 25, 2019
1 parent ed20826 commit deea774
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Core/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,14 @@ public static function initialize()
{
if (file_exists(static::COMPOSER_PLUGINS)) {
$composer = json_decode(file_get_contents(static::COMPOSER_PLUGINS), true);
/**
* [Commands] => vendor/originphp/commands
* [Debug] => vendor/originphp/debug-plugin
* [Generate] => vendor/originphp/generate
* [UserAuthentication] => plugins/user_authentication
*/
foreach ($composer as $plugin => $path) {
static::load($plugin, ['path' => ROOT . $path, 'autoload' => false]);
static::load($plugin, ['path' => ROOT . '/' . $path, 'autoload' => false]);
}
}
}
Expand Down

0 comments on commit deea774

Please sign in to comment.