for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\di\definitions;
use Psr\Container\ContainerInterface;
use yii\di\contracts\DefinitionInterface;
use yii\di\exceptions\NotFoundException;
* An invalid dependency is created when a parameter has no type and no default value.
* For example:
* ```php
* public function __construct($a, $b) {}
* ```
*
* These dependency must be replaced, attempting to resolve them will throw an exception
class InvalidDefinition implements DefinitionInterface
{
public function resolve(ContainerInterface $container, array $params = [])
throw new NotFoundException('Invalid reference');
}