Fixed constants
This commit is contained in:
parent
60a2b7282a
commit
4fee89fb80
46 changed files with 204 additions and 212 deletions
|
|
@ -10,9 +10,9 @@ use Pimple\Container;
|
|||
*/
|
||||
class Factory
|
||||
{
|
||||
const TYPE_ARRAY = "array";
|
||||
const TYPE_CALLABLE = "callable";
|
||||
const INTERFACE_PHPCI_PLUGIN = '\PHPCensor\Plugin';
|
||||
const TYPE_ARRAY = "array";
|
||||
const TYPE_CALLABLE = "callable";
|
||||
const INTERFACE_PLUGIN = '\PHPCensor\Plugin';
|
||||
|
||||
private $currentPluginOptions;
|
||||
|
||||
|
|
@ -79,9 +79,9 @@ class Factory
|
|||
|
||||
$reflectedPlugin = new \ReflectionClass($className);
|
||||
|
||||
if (!$reflectedPlugin->implementsInterface(self::INTERFACE_PHPCI_PLUGIN)) {
|
||||
if (!$reflectedPlugin->implementsInterface(self::INTERFACE_PLUGIN)) {
|
||||
throw new \InvalidArgumentException(
|
||||
"Requested class must implement " . self:: INTERFACE_PHPCI_PLUGIN
|
||||
"Requested class must implement " . self:: INTERFACE_PLUGIN
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue