src/ClassResolver.php
public function resolve($abstract, $parameters = array())
    {
        $concrete = $this->getConcrete($abstract);

        // We're ready to instantiate an instance of the concrete type registered for
        // the binding. This will instantiate the types, as well as resolve any of
        // its "nested" dependencies recursively until all have gotten resolved.
        if ($this->isBuildable($concrete, $abstract)) {
            $object = $this->build($concrete, $parameters);
        } else {
            $object = $this->resolve($concrete, $parameters);
        }

        $this->dispatchEvent(Events::CLASS_RESOLVED, new ClassResolvedEvent($object));

        return $object;
    }
public function resolve($abstract, $parameters = array())
    {
        $concrete = $this->getConcrete($abstract);

        // We're ready to instantiate an instance of the concrete type registered for
        // the binding. This will instantiate the types, as well as resolve any of
        // its "nested" dependencies recursively until all have gotten resolved.
        if ($this->isBuildable($concrete, $abstract)) {
            $object = $this->build($concrete, $parameters);
        } else {
            $object = $this->resolve($concrete, $parameters);
        }

        $this->dispatchEvent(Events::CLASS_RESOLVED, new ClassResolvedEvent($object));

        return $object;
    }
Instantiate a concrete instance of the given type.

@param string $abstract
@param array $parameters

@return mixed