src/Sulu/Component/Security/Authorization/AccessControl/AccessControlManager.php
private function getAccessControlProvider($type)
    {
        foreach ($this->accessControlProviders as $accessControlProvider) {
            if ($accessControlProvider->supports($type)) {
                return $accessControlProvider;
            }
        }
    }
private function getAccessControlProvider($type)
    {
        foreach ($this->accessControlProviders as $accessControlProvider) {
            if ($accessControlProvider->supports($type)) {
                return $accessControlProvider;
            }
        }
    }
private function getAccessControlProvider ( $ type ) { foreach ( $ this -> accessControlProviders as $ accessControlProvider ) { if ( $ accessControlProvider -> supports ( $ type ) ) { return $ accessControlProvider ; } } }
Returns the AccessControlProvider, which supports the given type.

@param string $type The type the AccessControlProvider should support

@return AccessControlProviderInterface
Returns the AccessControlProvider which supports the given type .