peakphp/framework

View on GitHub
src/Di/Exception/InfiniteLoopResolutionException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Peak\Di\Exception;

use \Exception;

class InfiniteLoopResolutionException extends Exception
{
    public function __construct(string $definition)
    {
        parent::__construct('Detecting an infinite loop while resolving singleton binding '.$definition.'. This mean the container was not able to resolve a definition that has a dependency on itself too.');
    }
}