first commit
This commit is contained in:
28
plugins/simplesaml/lib/routing/routes/routes.yml
Normal file
28
plugins/simplesaml/lib/routing/routes/routes.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
|
||||
remove_trailing_slash:
|
||||
path: /{module}/{url}
|
||||
defaults: {
|
||||
_controller: SimpleSAML\Module::removeTrailingSlash
|
||||
}
|
||||
requirements:
|
||||
url: ".*/$"
|
||||
methods: [GET]
|
||||
|
||||
add_trailing_slash:
|
||||
path: /{url}
|
||||
defaults: {
|
||||
_controller: SimpleSAML\Module::addTrailingSlash
|
||||
}
|
||||
requirements:
|
||||
url: "[a-zA-Z0-9_-]+[^/]$"
|
||||
methods: [GET]
|
||||
|
||||
admin-shortcut:
|
||||
path: /admin
|
||||
defaults: {
|
||||
_controller: 'SimpleSAML\Module\admin\Controller\Config::main',
|
||||
path: /admin,
|
||||
permanent: true
|
||||
}
|
||||
methods: [GET]
|
6
plugins/simplesaml/lib/routing/services/console.yml
Normal file
6
plugins/simplesaml/lib/routing/services/console.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
|
||||
services:
|
||||
# default configuration for services in *this* file
|
||||
_defaults:
|
||||
public: false
|
76
plugins/simplesaml/lib/routing/services/routing.yml
Normal file
76
plugins/simplesaml/lib/routing/services/routing.yml
Normal file
@@ -0,0 +1,76 @@
|
||||
---
|
||||
|
||||
services:
|
||||
# default configuration for services in *this* file
|
||||
_defaults:
|
||||
public: false
|
||||
|
||||
routing.resolver:
|
||||
class: Symfony\Component\Config\Loader\LoaderResolver
|
||||
|
||||
routing.loader.xml:
|
||||
class: Symfony\Component\Routing\Loader\XmlFileLoader
|
||||
arguments:
|
||||
- '@file_locator'
|
||||
tags: ['routing.loader']
|
||||
|
||||
routing.loader.yaml:
|
||||
class: Symfony\Component\Routing\Loader\YamlFileLoader
|
||||
arguments:
|
||||
- '@file_locator'
|
||||
tags: ['routing.loader']
|
||||
|
||||
routing.loader.php:
|
||||
class: Symfony\Component\Routing\Loader\PhpFileLoader
|
||||
arguments:
|
||||
- '@file_locator'
|
||||
tags: ['routing.loader']
|
||||
|
||||
routing.loader.glob:
|
||||
class: Symfony\Component\Routing\Loader\GlobFileLoader
|
||||
arguments:
|
||||
- '@file_locator'
|
||||
tags: ['routing.loader']
|
||||
|
||||
routing.loader.directory:
|
||||
class: Symfony\Component\Routing\Loader\DirectoryLoader
|
||||
arguments:
|
||||
- '@file_locator'
|
||||
tags: ['routing.loader']
|
||||
|
||||
routing.loader.service:
|
||||
class: Symfony\Component\Routing\Loader\ContainerLoader
|
||||
arguments:
|
||||
- '@service_container'
|
||||
tags: ['routing.loader']
|
||||
|
||||
routing.loader:
|
||||
public: true
|
||||
class: Symfony\Component\Config\Loader\DelegatingLoader
|
||||
arguments:
|
||||
- '@routing.resolver'
|
||||
- {}
|
||||
|
||||
router.default:
|
||||
class: Symfony\Component\Routing\Router
|
||||
arguments:
|
||||
- '@routing.loader'
|
||||
- 'kernel::loadRoutes'
|
||||
- {
|
||||
resource_type: 'service'
|
||||
}
|
||||
- '@?router.request_context'
|
||||
|
||||
router:
|
||||
alias: router.default
|
||||
public: true
|
||||
|
||||
router.request_context:
|
||||
class: Symfony\Component\Routing\RequestContext
|
||||
|
||||
router.router_listener:
|
||||
class: Symfony\Component\HttpKernel\EventListener\RouterListener
|
||||
arguments:
|
||||
- '@router'
|
||||
- '@request_stack'
|
||||
- '@?router.request_context'
|
35
plugins/simplesaml/lib/routing/services/services.yml
Normal file
35
plugins/simplesaml/lib/routing/services/services.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
|
||||
services:
|
||||
# default configuration for services in *this* file
|
||||
_defaults:
|
||||
public: false
|
||||
|
||||
request_stack:
|
||||
class: Symfony\Component\HttpFoundation\RequestStack
|
||||
public: true
|
||||
|
||||
Symfony\Component\HttpFoundation\RequestStack:
|
||||
alias: request_stack
|
||||
|
||||
file_locator:
|
||||
class: Symfony\Component\Config\FileLocator
|
||||
|
||||
dispatcher:
|
||||
class: Symfony\Component\EventDispatcher\EventDispatcher
|
||||
calls:
|
||||
- method: addSubscriber
|
||||
arguments:
|
||||
- '@router_listener'
|
||||
- method: addSubscriber
|
||||
arguments:
|
||||
- '@response_listener'
|
||||
|
||||
http_kernel:
|
||||
class: Symfony\Component\HttpKernel\HttpKernel
|
||||
public: true
|
||||
arguments:
|
||||
- '@dispatcher'
|
||||
- '@controller_resolver'
|
||||
- '@request_stack'
|
||||
- '@argument_resolver'
|
18
plugins/simplesaml/lib/routing/services/simplesamlphp.yml
Normal file
18
plugins/simplesaml/lib/routing/services/simplesamlphp.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
|
||||
services:
|
||||
# default configuration for services in *this* file
|
||||
_defaults:
|
||||
public: false
|
||||
|
||||
SimpleSAML\Configuration:
|
||||
factory: ['SimpleSAML\Configuration', 'getInstance']
|
||||
|
||||
SimpleSAML\Session:
|
||||
factory: ['SimpleSAML\Session', 'getSessionFromRequest']
|
||||
|
||||
SimpleSAML\Auth\AuthenticationFactory:
|
||||
class: SimpleSAML\Auth\AuthenticationFactory
|
||||
arguments:
|
||||
- '@SimpleSAML\Configuration'
|
||||
- '@SimpleSAML\Session'
|
25
plugins/simplesaml/lib/routing/services/web.yml
Normal file
25
plugins/simplesaml/lib/routing/services/web.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
|
||||
services:
|
||||
# default configuration for services in *this* file
|
||||
_defaults:
|
||||
public: false
|
||||
|
||||
controller_resolver:
|
||||
class: Symfony\Component\HttpKernel\Controller\ContainerControllerResolver
|
||||
arguments:
|
||||
- '@service_container'
|
||||
|
||||
argument_metadata_factory:
|
||||
class: Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadataFactory
|
||||
|
||||
argument_resolver:
|
||||
class: Symfony\Component\HttpKernel\Controller\ArgumentResolver
|
||||
arguments:
|
||||
- '@argument_metadata_factory'
|
||||
- ''
|
||||
|
||||
response_listener:
|
||||
class: Symfony\Component\HttpKernel\EventListener\ResponseListener
|
||||
arguments:
|
||||
- 'UTF-8'
|
Reference in New Issue
Block a user