Neos\Flow\Security\Authorization\Privilege\Method\MethodPrivilege::injectObjectManager PHP Method

injectObjectManager() public method

This object is created very early so we can't rely on AOP for the property injection This method also takes care of initializing caches and other dependencies.
public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
return void
    public function injectObjectManager(ObjectManagerInterface $objectManager)
    {
        $this->objectManager = $objectManager;
        $this->initialize();
    }