1 | <?php |
||
39 | class Config extends ContainerConfig |
||
40 | { |
||
41 | // View |
||
42 | const VIEW = View\View::class; |
||
43 | const VIEW_FACTORY = View\ViewFactory::class; |
||
44 | |||
45 | // View params |
||
46 | const VIEW_MAP = self::class . '::VIEW_MAP'; |
||
47 | const VIEW_PATHS = self::class . '::VIEW_PATHS'; |
||
48 | const LAYOUT_MAP = self::class . '::LAYOUT_MAP'; |
||
49 | const LAYOUT_PATHS = self::class . '::LAYOUT_PATHS'; |
||
50 | |||
51 | // Helper |
||
52 | const HELPER_LOCATOR = Html\HelperLocator::class; |
||
53 | const HELPER_FACTORY = Html\HelperLocatorFactory::class; |
||
54 | |||
55 | // Helpers |
||
56 | const HELPER_SPECS = self::class . '::HELPER_SPECS'; |
||
57 | |||
58 | // Escaper |
||
59 | const ESCAPER_FACTORY = Html\EscaperFactory::class; |
||
60 | const ESCAPER = Html\Escaper::class; |
||
61 | 9 | ||
62 | |||
63 | protected $params = [ |
||
64 | 9 | self::VIEW_MAP => [], |
|
65 | 9 | self::VIEW_PATHS => [], |
|
66 | 9 | self::LAYOUT_MAP => [], |
|
67 | 9 | self::LAYOUT_PATHS => [], |
|
68 | self::HELPER_SPECS => [] |
||
69 | 9 | ]; |
|
70 | 9 | ||
71 | 9 | /** |
|
72 | 9 | * Define Aura\View and Aura\Html factories and services |
|
73 | * |
||
74 | 9 | * @param Container $di DI Container |
|
75 | 9 | * |
|
76 | * @return void |
||
77 | 9 | * |
|
78 | 9 | * @access public |
|
79 | 9 | * |
|
80 | 9 | * @SuppressWarnings(PHPMD.ShortVariable) |
|
81 | */ |
||
82 | 9 | public function define(Container $di) |
|
93 | 9 | ||
94 | 9 | /** |
|
95 | 9 | * Define Aura\Html factories and services |
|
96 | 9 | * |
|
97 | * @param Container $di DI Container |
||
98 | 9 | * |
|
99 | 9 | * @return void |
|
100 | 9 | * |
|
101 | 9 | * @access public |
|
102 | 9 | * |
|
103 | 9 | * @SuppressWarnings(PHPMD.ShortVariable) |
|
104 | 9 | */ |
|
105 | 9 | protected function defineHelpers(Container $di) |
|
131 | |||
132 | /** |
||
133 | * Define Aura\View factories and services |
||
134 | * |
||
135 | * @param Container $di DI Container |
||
136 | * |
||
137 | * @return void |
||
138 | * |
||
139 | * @access public |
||
140 | * |
||
141 | * @SuppressWarnings(PHPMD.ShortVariable) |
||
142 | */ |
||
143 | protected function defineView(Container $di) |
||
163 | |||
164 | /** |
||
165 | * Define Add helpers |
||
166 | * |
||
167 | * @param Container $di DI Container |
||
168 | * |
||
169 | * @return void |
||
170 | * |
||
171 | * @access public |
||
172 | * |
||
173 | * @SuppressWarnings(PHPMD.ShortVariable) |
||
174 | */ |
||
175 | public function modify(Container $di) |
||
195 | |||
196 | } |
||
197 |