Neos\ContentRepository\Command\NodeCommandController::detectPlugins PHP 메소드

detectPlugins() 보호된 정적인 메소드

Detects plugins for this command controller
protected static detectPlugins ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
리턴 array
    protected static function detectPlugins(ObjectManagerInterface $objectManager)
    {
        $pluginConfigurations = array();
        $classNames = $objectManager->get(ReflectionService::class)->getAllImplementationClassNamesForInterface(NodeCommandControllerPluginInterface::class);
        foreach ($classNames as $className) {
            $pluginConfigurations[$className] = array('object' => $objectManager->get($objectManager->getObjectNameByClassName($className)));
        }
        return $pluginConfigurations;
    }