Просмотр файла vendor/php-di/php-di/src/Definition/Exception/InvalidDefinition.php
<?php declare(strict_types=1); namespace DI\Definition\Exception; use DI\Definition\Definition; /** * Invalid DI definitions. * * @author Matthieu Napoli <[email protected]> */ class InvalidDefinition extends \Exception { public static function create(Definition $definition, string $message, \Exception $previous = null) : self { return new self(sprintf( '%s' . PHP_EOL . 'Full definition:' . PHP_EOL . '%s', $message, (string) $definition ), 0, $previous); } }