yii\di\Container::has PHP Метод

has() публичный Метод

Returns a value indicating whether the container has the definition of the specified name.
См. также: set()
public has ( string $class ) : boolean
$class string class name, interface name or alias name
Результат boolean whether the container has the definition of the specified name..
    public function has($class)
    {
        return isset($this->_definitions[$class]);
    }