Guest User

Untitled

a guest
Jun 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. <?php
  2.  
  3. $context->set('hole_PathMatcher', array('className' => 'hole_AntPathMatcher',));
  4.  
  5. $context->set('hole_FilterChainProxy', array('className' => 'hole_FilterChainProxy', 'lazyLoad' => false,
  6. 'properties' => array(
  7. 'pathMatcher' => $context->ref('hole_PathMatcher'),
  8. 'filterChainMap' => array(
  9. '/**' => array('hole_HttpSessionContextIntegrationFilter', 'hole_AuthenticationProcessingFilter', 'hole_ExceptionTranslationFilter', 'hole_FilterSecurityInterceptor', ),
  10. ),
  11. ),
  12. ));
  13.  
  14. $context->set('hole_HttpSessionContextIntegrationFilter', array('className' => 'hole_HttpSessionContextIntegrationFilter',));
  15.  
  16. $context->set('hole_AuthenticationProcessingFilter', array('className' => 'hole_AuthenticationProcessingFilter',
  17. 'properties' => array(
  18. 'defaultTargetUrl' => '/ArcheType.php/common/index.htm',
  19. 'failureUrl' => '/ArcheType.php/common/login.htm',
  20. 'authenticationManager' => $context->ref('hole_AuthenticationManager'),
  21. ),
  22. ));
  23.  
  24. $context->set('hole_AuthenticationManager', array('className' => 'hole_ProviderManager',
  25. 'properties' => array(
  26. 'providers' => array('hole_DaoAuthenticationProvider'),
  27. ),
  28. ));
  29.  
  30. $context->set('hole_DaoAuthenticationProvider', array('className' => 'hole_DaoAuthenticationProvider',
  31. 'properties' => array(
  32. 'passwordEncoder' => $context->ref('hole_PasswordEncoder'),
  33. 'userDetailsService' => $context->ref('hole_UserDetailsService'),
  34. ),
  35. ));
  36.  
  37. $context->set('hole_PasswordEncoder', array('className' => 'hole_PlaintextPasswordEncoder',));
  38.  
  39. $context->set('hole_UserDetailsService', array('className' => 'hole_InMemoryUserDetails',
  40. 'properties' => array(
  41. 'userMap' => array(
  42. 'aek' => array(
  43. 'password' => 'prior',
  44. 'roles' => array('admin')
  45. ),
  46. 'prior' => array(
  47. 'password' => 'priority',
  48. 'enabled' => false,
  49. 'roles' => array('user')
  50. ),
  51. ),
  52. ),
  53. ));
  54.  
  55. $context->set('hole_ExceptionTranslationFilter', array('className' => 'hole_ExceptionTranslationFilter',
  56. 'properties' => array(
  57. 'loginFormUrl' => '/ArcheType.php/common/login.htm',
  58. 'errorPage' => '/ArcheType.php/common/error.htm',
  59. ),
  60. ));
  61.  
  62. $context->set('hole_FilterSecurityInterceptor', array('className' => 'hole_FilterSecurityInterceptor',
  63. 'properties' => array(
  64. 'objectDefinitionSource' => $context->ref('hole_ObjectDefinitionSource'),
  65. 'accessDecisionManager' => $context->ref('hole_AccessDecisionManager'),
  66. 'authenticationManager' => $context->ref('hole_AuthenticationManager'),
  67. ),
  68. ));
  69.  
  70. $context->set('hole_ObjectDefinitionSource', array('className' => 'hole_ObjectDefinitionSource',
  71. 'constructorArgs' => array(
  72. 'definitionSource' => array(
  73. '/' => array('admin', 'user'),
  74. ),
  75. ),
  76. 'properties' => array(
  77. 'pathMatcher' => $context->ref('hole_PathMatcher'),
  78. ),
  79. ));
  80.  
  81. $context->set('hole_AccessDecisionManager', array('className' => 'hole_AffirmativeBased',
  82. 'properties' => array(
  83. 'allowIfAllAbstainDecisions' => false,
  84. 'decisionVoters' => array('hole_AccessDecisionVoter', ),
  85. ),
  86. ));
  87.  
  88. $context->set('hole_AccessDecisionVoter', array('className' => 'hole_RoleVoter',
  89. 'properties' => array(
  90. 'rolePrefix' => '',
  91. ),
  92. ));
  93.  
  94. ?>
Add Comment
Please, Sign In to add comment