Created
March 9, 2011 12:13
-
-
Save arghav/862095 to your computer and use it in GitHub Desktop.
Suppress exception if abstract
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!$this->container->hasDefinition($parent = $definition->getParent())) { | |
if ($definition->isAbstract()) { | |
return null; | |
} | |
throw new \RuntimeException(sprintf('The parent definition "%s" defined for definition "%s" does not exist.', $parent, $id)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment