Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $context->set('hole_PathMatcher', array('className' => 'hole_AntPathMatcher',));
- $context->set('hole_FilterChainProxy', array('className' => 'hole_FilterChainProxy', 'lazyLoad' => false,
- 'properties' => array(
- 'pathMatcher' => $context->ref('hole_PathMatcher'),
- 'filterChainMap' => array(
- '/**' => array('hole_HttpSessionContextIntegrationFilter', 'hole_AuthenticationProcessingFilter', 'hole_ExceptionTranslationFilter', 'hole_FilterSecurityInterceptor', ),
- ),
- ),
- ));
- $context->set('hole_HttpSessionContextIntegrationFilter', array('className' => 'hole_HttpSessionContextIntegrationFilter',));
- $context->set('hole_AuthenticationProcessingFilter', array('className' => 'hole_AuthenticationProcessingFilter',
- 'properties' => array(
- 'defaultTargetUrl' => '/ArcheType.php/common/index.htm',
- 'failureUrl' => '/ArcheType.php/common/login.htm',
- 'authenticationManager' => $context->ref('hole_AuthenticationManager'),
- ),
- ));
- $context->set('hole_AuthenticationManager', array('className' => 'hole_ProviderManager',
- 'properties' => array(
- 'providers' => array('hole_DaoAuthenticationProvider'),
- ),
- ));
- $context->set('hole_DaoAuthenticationProvider', array('className' => 'hole_DaoAuthenticationProvider',
- 'properties' => array(
- 'passwordEncoder' => $context->ref('hole_PasswordEncoder'),
- 'userDetailsService' => $context->ref('hole_UserDetailsService'),
- ),
- ));
- $context->set('hole_PasswordEncoder', array('className' => 'hole_PlaintextPasswordEncoder',));
- $context->set('hole_UserDetailsService', array('className' => 'hole_InMemoryUserDetails',
- 'properties' => array(
- 'userMap' => array(
- 'aek' => array(
- 'password' => 'prior',
- 'roles' => array('admin')
- ),
- 'prior' => array(
- 'password' => 'priority',
- 'enabled' => false,
- 'roles' => array('user')
- ),
- ),
- ),
- ));
- $context->set('hole_ExceptionTranslationFilter', array('className' => 'hole_ExceptionTranslationFilter',
- 'properties' => array(
- 'loginFormUrl' => '/ArcheType.php/common/login.htm',
- 'errorPage' => '/ArcheType.php/common/error.htm',
- ),
- ));
- $context->set('hole_FilterSecurityInterceptor', array('className' => 'hole_FilterSecurityInterceptor',
- 'properties' => array(
- 'objectDefinitionSource' => $context->ref('hole_ObjectDefinitionSource'),
- 'accessDecisionManager' => $context->ref('hole_AccessDecisionManager'),
- 'authenticationManager' => $context->ref('hole_AuthenticationManager'),
- ),
- ));
- $context->set('hole_ObjectDefinitionSource', array('className' => 'hole_ObjectDefinitionSource',
- 'constructorArgs' => array(
- 'definitionSource' => array(
- '/' => array('admin', 'user'),
- ),
- ),
- 'properties' => array(
- 'pathMatcher' => $context->ref('hole_PathMatcher'),
- ),
- ));
- $context->set('hole_AccessDecisionManager', array('className' => 'hole_AffirmativeBased',
- 'properties' => array(
- 'allowIfAllAbstainDecisions' => false,
- 'decisionVoters' => array('hole_AccessDecisionVoter', ),
- ),
- ));
- $context->set('hole_AccessDecisionVoter', array('className' => 'hole_RoleVoter',
- 'properties' => array(
- 'rolePrefix' => '',
- ),
- ));
- ?>
Add Comment
Please, Sign In to add comment