Skip to content

Commit

Permalink
Merge pull request #158 from vmikhav/fix/fix-component-constructor
Browse files Browse the repository at this point in the history
Fix component's constructor error message
  • Loading branch information
markstory authored Jun 14, 2019
2 parents 1a18f78 + 06fa2a7 commit 4fe97ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Component/AclComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function __construct(ComponentRegistry $collection, array $config = [])
if (!class_exists($className)) {
$className = App::className('Acl.' . $name, 'Adapter');
if (!$className) {
throw new Exception(sprintf('Could not find {0}.', [$name]));
throw new Exception(sprintf('Could not find %s.', $name));
}
}
$this->adapter($className);
Expand Down

0 comments on commit 4fe97ed

Please sign in to comment.