isInstantiable() public method

public isInstantiable ( ) : boolean
return boolean
Beispiel #1
0
 private function assertClassIsInstantiable(ObjectDefinition $definition)
 {
     if (!$definition->isInstantiable()) {
         throw DefinitionException::create($definition, sprintf('Entry "%s" cannot be resolved: the class is not instantiable', $definition->getName()));
     }
 }
Beispiel #2
0
 private function assertClassIsInstantiable(ObjectDefinition $definition)
 {
     if (!$definition->isInstantiable()) {
         throw DefinitionException::create($definition, sprintf("Entry %s cannot be resolved: class %s is not instantiable", $definition->getName(), $definition->getClassName()));
     }
 }