original_string: protected function createAclFromConfig(array $config)
      {
          $aclConfig     = [];
          $denyByDefault = false;
  
          if (array_key_exists('deny_by_default', $config)) {
              $denyByDefault = $aclConfig['deny_by_default'] = (bool)$config['deny_by_default'];
              unset($config['deny_by_default']);
          }
  
          foreach ($config as $controllerService => $privileges) {
              $this->createAclConfigFromPrivileges($controllerService, $privileges, $aclConfig, $denyByDefault);
          }
  
          return AclFactory::factory($aclConfig);
      }
code: protected function createAclFromConfig(array $config)
      {
          $aclConfig     = [];
          $denyByDefault = false;
  
          if (array_key_exists('deny_by_default', $config)) {
              $denyByDefault = $aclConfig['deny_by_default'] = (bool)$config['deny_by_default'];
              unset($config['deny_by_default']);
          }
  
          foreach ($config as $controllerService => $privileges) {
              $this->createAclConfigFromPrivileges($controllerService, $privileges, $aclConfig, $denyByDefault);
          }
  
          return AclFactory::factory($aclConfig);
      }
code_tokens: protected function createAclFromConfig ( array $ config ) { $ aclConfig = [ ] ; $ denyByDefault = false ; if ( array_key_exists ( 'deny_by_default' , $ config ) ) { $ denyByDefault = $ aclConfig [ 'deny_by_default' ] = ( bool ) $ config [ 'deny_by_default' ] ; unset ( $ config [ 'deny_by_default' ] ) ; } foreach ( $ config as $ controllerService => $ privileges ) { $ this -> createAclConfigFromPrivileges ( $ controllerService , $ privileges , $ aclConfig , $ denyByDefault ) ; } return AclFactory :: factory ( $ aclConfig ) ; }
docstring: Generate the ACL instance based on the zf-mvc-auth "authorization" configuration
  
  Consumes the AclFactory in order to create the AclAuthorization instance.
  
  @param array $config
  @return AclAuthorization
docstring_tokens: Generate the ACL instance based on the zf - mvc - auth authorization configuration