src/Di/Container.php
public function resolve(string $definition, array $args = [])
    {
        $def = $this->getDefinition($definition);
        if ($def === null) {
            throw new ClassDefinitionNotFoundException($definition);
        }

        return $this->binding_resolver->resolve($def, $this, $args);
    }
public function resolve(string $definition, array $args = [])
    {
        $def = $this->getDefinition($definition);
        if ($def === null) {
            throw new ClassDefinitionNotFoundException($definition);
        }

        return $this->binding_resolver->resolve($def, $this, $args);
    }
public function resolve ( string $ definition , array $ args = [ ] ) { $ def = $ this -> getDefinition ( $ definition ) ; if ( $ def === null ) { throw new ClassDefinitionNotFoundException ( $ definition ) ; } return $ this -> binding_resolver -> resolve ( $ def , $ this , $ args ) ; }
Resolve a stored definition

@param string $definition
@param array $args
@return mixed
@throws ClassDefinitionNotFoundException
Resolve a stored definition