src/AbstractPluginManager.php
public function setServiceLocator(ContainerInterface $container)
    {
        trigger_error(sprintf(
            'Usage of %s is deprecated since v3.0.0; please pass the container to the constructor instead',
            __METHOD__
        ), E_USER_DEPRECATED);
        $this->creationContext = $container;
    }
public function setServiceLocator(ContainerInterface $container)
    {
        trigger_error(sprintf(
            'Usage of %s is deprecated since v3.0.0; please pass the container to the constructor instead',
            __METHOD__
        ), E_USER_DEPRECATED);
        $this->creationContext = $container;
    }
public function setServiceLocator ( ContainerInterface $ container ) { trigger_error ( sprintf ( 'Usage of %s is deprecated since v3.0.0; please pass the container to the constructor instead' , __METHOD__ ) , E_USER_DEPRECATED ) ; $ this -> creationContext = $ container ; }
Implemented for backwards compatibility only.

Returns the creation context.

@deprecated since 3.0.0. The creation context should be passed during
instantiation instead.
@param ContainerInterface $container
@return void
Implemented for backwards compatibility only .