5 * @link http://php-di.org/
6 * @copyright Matthieu Napoli (http://mnapoli.fr/)
7 * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
10 namespace DI\Definition\Exception;
13 use DI\Definition\Definition;
16 * Invalid DI definitions
18 * @author Matthieu Napoli <matthieu@mnapoli.fr>
20 class DefinitionException extends \Exception
22 public static function create(Definition $definition, $message)
24 return new self(sprintf(
25 "%s" . PHP_EOL . "Full definition:" . PHP_EOL . "%s",
27 Debug::dumpDefinition($definition)