1 | <?php |
||
13 | abstract class AbstractPackageRendererServiceProvider implements ServiceProviderInterface |
||
14 | { |
||
15 | /** |
||
16 | * Returns the path to the templates directory. |
||
17 | * |
||
18 | * @return string |
||
19 | */ |
||
20 | abstract public static function getTemplateDirectory(): string; |
||
21 | |||
22 | public static function getPriority(): int |
||
26 | |||
27 | /** |
||
28 | * Returns a list of all container entries registered by this service provider. |
||
29 | * |
||
30 | * - the key is the entry name |
||
31 | * - the value is a callable that will return the entry, aka the **factory** |
||
32 | * |
||
33 | * Factories have the following signature: |
||
34 | * function(\Psr\Container\ContainerInterface $container) |
||
35 | * |
||
36 | * @return callable[] |
||
37 | */ |
||
38 | public function getFactories() |
||
44 | |||
45 | public static function createRenderer(ContainerInterface $container): FileBasedRenderer |
||
49 | |||
50 | /** |
||
51 | * Returns a list of all container entries extended by this service provider. |
||
52 | * |
||
53 | * - the key is the entry name |
||
54 | * - the value is a callable that will return the modified entry |
||
55 | * |
||
56 | * Callables have the following signature: |
||
57 | * function(Psr\Container\ContainerInterface $container, $previous) |
||
58 | * or function(Psr\Container\ContainerInterface $container, $previous = null) |
||
59 | * |
||
60 | * About factories parameters: |
||
61 | * |
||
62 | * - the container (instance of `Psr\Container\ContainerInterface`) |
||
63 | * - the entry to be extended. If the entry to be extended does not exist and the parameter is nullable, `null` will be passed. |
||
64 | * |
||
65 | * @return callable[] |
||
66 | */ |
||
67 | public function getExtensions() |
||
73 | |||
74 | public static function extendPackageRenderersList(ContainerInterface $container, \SplPriorityQueue $priorityQueue): \SplPriorityQueue |
||
79 | } |
||
80 |