final protected function autowire(string $class, array $parameters, string $context = null)
    {
        if (!class_exists($class)) {
            throw new NotFoundException("Undefined class or binding '{$class}'");
        }

        //Automatically create instance
        $instance = $this->createInstance($class, $parameters, $context);

        //Apply registration functions to created instance
        return $this->registerInstance($instance, $parameters);
    }
final protected function autowire(string $class, array $parameters, string $context = null)
    {
        if (!class_exists($class)) {
            throw new NotFoundException("Undefined class or binding '{$class}'");
        }

        //Automatically create instance
        $instance = $this->createInstance($class, $parameters, $context);

        //Apply registration functions to created instance
        return $this->registerInstance($instance, $parameters);
    }
final protected function autowire ( string $ class , array $ parameters , string $ context = null ) { if ( ! class_exists ( $ class ) ) { throw new NotFoundException ( "Undefined class or binding '{$class}'" ) ; } //Automatically create instance $ instance = $ this -> createInstance ( $ class , $ parameters , $ context ) ; //Apply registration functions to created instance return $ this -> registerInstance ( $ instance , $ parameters ) ; }
Automatically create class.

@param string $class
@param array  $parameters
@param string $context

@return object

@throws AutowireException
@throws \ErrorException
Automatically create class .