public function setDependencyResolver(DependencyResolver $dependencyResolver)
    {
        if ($this->dependencyResolver != null) {
            throw new \LogicException('There is an instance of DependencyManager class in class ContentManager.');
        }

        $this->dependencyResolver = $dependencyResolver;
    }
public function setDependencyResolver(DependencyResolver $dependencyResolver)
    {
        if ($this->dependencyResolver != null) {
            throw new \LogicException('There is an instance of DependencyManager class in class ContentManager.');
        }

        $this->dependencyResolver = $dependencyResolver;
    }
public function setDependencyResolver ( DependencyResolver $ dependencyResolver ) { if ( $ this -> dependencyResolver != null ) { throw new \ LogicException ( 'There is an instance of DependencyManager class in class ContentManager.' ) ; } $ this -> dependencyResolver = $ dependencyResolver ; }
Sets the dependency resolver.

@param DependencyResolver $dependencyResolver

@throws LogicException If there is a previous instance the dependency resolver.
Sets the dependency resolver .