for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TomPHP\ContainerConfigurator\Exception;
use LogicException;
use TomPHP\ExceptionConstructorTools;
final class InvalidConfigException extends LogicException implements Exception
{
use ExceptionConstructorTools;
/**
* @param string $filename
*
* @return self
*/
public static function fromPHPFileError($filename)
return self::create('"%s" does not return a PHP array.', [$filename]);
}
* @param string $message
public static function fromJSONFileError($filename, $message)
return self::create('Invalid JSON in "%s": %s', [$filename, $message]);
public static function fromYAMLFileError($filename, $message)
return self::create('Invalid YAML in "%s": %s', [$filename, $message]);
* @param string $name
public static function fromNameWhenClassAndFactorySpecified($name)
return self::create(
'Both "class" and "factory" are specified for service "%s"; these cannot be used together.',
[$name]
);