75 lines
1.7 KiB
YAML
75 lines
1.7 KiB
YAML
name: RouterCacheWarmer
|
|
class_comment: '# * Generates the router matcher and generator classes.
|
|
|
|
# *
|
|
|
|
# * @author Fabien Potencier <fabien@symfony.com>
|
|
|
|
# *
|
|
|
|
# * @final'
|
|
dependencies:
|
|
- name: ContainerInterface
|
|
type: class
|
|
source: Psr\Container\ContainerInterface
|
|
- name: CacheWarmerInterface
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface
|
|
- name: WarmableInterface
|
|
type: class
|
|
source: Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface
|
|
- name: RouterInterface
|
|
type: class
|
|
source: Symfony\Component\Routing\RouterInterface
|
|
- name: ServiceSubscriberInterface
|
|
type: class
|
|
source: Symfony\Contracts\Service\ServiceSubscriberInterface
|
|
properties: []
|
|
methods:
|
|
- name: __construct
|
|
visibility: public
|
|
parameters:
|
|
- name: container
|
|
comment: '# * Generates the router matcher and generator classes.
|
|
|
|
# *
|
|
|
|
# * @author Fabien Potencier <fabien@symfony.com>
|
|
|
|
# *
|
|
|
|
# * @final
|
|
|
|
# */
|
|
|
|
# class RouterCacheWarmer implements CacheWarmerInterface, ServiceSubscriberInterface
|
|
|
|
# {
|
|
|
|
# /**
|
|
|
|
# * As this cache warmer is optional, dependencies should be lazy-loaded, that''s
|
|
why a container should be injected.'
|
|
- name: warmUp
|
|
visibility: public
|
|
parameters:
|
|
- name: cacheDir
|
|
- name: buildDir
|
|
default: 'null'
|
|
comment: null
|
|
- name: isOptional
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: getSubscribedServices
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
traits:
|
|
- Psr\Container\ContainerInterface
|
|
- Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface
|
|
- Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface
|
|
- Symfony\Component\Routing\RouterInterface
|
|
- Symfony\Contracts\Service\ServiceSubscriberInterface
|
|
interfaces:
|
|
- CacheWarmerInterface
|