isInstantiable() public méthode

public isInstantiable ( ) : boolean
Résultat boolean
Exemple #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()));
     }
 }
Exemple #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()));
     }
 }