Skip to content

Commit

Permalink
Use constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 13, 2018
1 parent 0b661f8 commit 4ebf10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/PluginApp.php
Expand Up @@ -57,7 +57,7 @@ class PluginApp implements PluginInterface
*/
public function __construct(array $options = [])
{
foreach (['bootstrap', 'routes', 'console', 'middleware'] as $key) {
foreach (PluginCollection::VALID_HOOKS as $key) {
if (isset($options[$key])) {
$this->{"{$key}Enabled"} = (bool)$options[$key];
}
Expand Down

0 comments on commit 4ebf10b

Please sign in to comment.