* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShopBundle\Security\Role; use Symfony\Component\Security\Core\Role\RoleHierarchyInterface; /** * Class DynamicRoleHierarchy is used for Symfony role hierarchy voter to load roles from database. */ class DynamicRoleHierarchy implements RoleHierarchyInterface { /** * @param array $roles An array of directly assigned roles * * @return string[] An array of all reachable roles */ public function getReachableRoleNames(array $roles) { return []; } }