File "InvalidDefinition.php"

Full Path: /home/amervokv/ecomlive.net/wp-content/plugins/elementor/vendor_prefixed/php-di/php-di/src/Definition/Exception/InvalidDefinition.php
File size: 621 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

declare (strict_types=1);
namespace ElementorDeps\DI\Definition\Exception;

use ElementorDeps\DI\Definition\Definition;
use ElementorDeps\Psr\Container\ContainerExceptionInterface;
/**
 * Invalid DI definitions.
 *
 * @author Matthieu Napoli <matthieu@mnapoli.fr>
 */
class InvalidDefinition extends \Exception implements ContainerExceptionInterface
{
    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);
    }
}