for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gacela\Framework\Container\Exception;
use Exception;
use Psr\Container\ContainerExceptionInterface;
final class ContainerException extends Exception implements ContainerExceptionInterface
{
public static function notFound(string $id): self
return new self("The requested service '{$id}' was not found in the container!");
}
public static function serviceNotInvokable(): self
return new self('The passed service is not invokable.');
public static function serviceNotExtendable(): self
return new self('The passed service is not extendable.');