|
1 | 1 | <?php |
2 | 2 |
|
| 3 | +declare(strict_types=1); |
| 4 | + |
3 | 5 | namespace Symfony\Component\DependencyInjection\Loader\Configurator; |
4 | 6 |
|
5 | 7 | use Doctrine\Bundle\DoctrineBundle\ManagerConfigurator; |
|
114 | 116 |
|
115 | 117 | ->alias(EntityManagerInterface::class, 'doctrine.orm.entity_manager') |
116 | 118 |
|
117 | | - ->set('doctrine.orm.proxy_cache_warmer', param('doctrine.orm.proxy_cache_warmer.class')) |
| 119 | + ->set('doctrine.orm.proxy_cache_warmer', (string) param('doctrine.orm.proxy_cache_warmer.class')) |
118 | 120 | ->tag('kernel.cache_warmer') |
119 | 121 | ->args([ |
120 | 122 | service('doctrine'), |
121 | 123 | ]) |
122 | 124 |
|
123 | | - ->set('form.type_guesser.doctrine', param('form.type_guesser.doctrine.class')) |
| 125 | + ->set('form.type_guesser.doctrine', (string) param('form.type_guesser.doctrine.class')) |
124 | 126 | ->tag('form.type_guesser') |
125 | 127 | ->args([ |
126 | 128 | service('doctrine'), |
|
132 | 134 | service('doctrine'), |
133 | 135 | ]) |
134 | 136 |
|
135 | | - ->set('doctrine.orm.configuration', param('doctrine.orm.configuration.class')) |
| 137 | + ->set('doctrine.orm.configuration', (string) param('doctrine.orm.configuration.class')) |
136 | 138 | ->abstract() |
137 | 139 |
|
138 | | - ->set('doctrine.orm.entity_manager.abstract', param('doctrine.orm.entity_manager.class')) |
| 140 | + ->set('doctrine.orm.entity_manager.abstract', (string) param('doctrine.orm.entity_manager.class')) |
139 | 141 | ->abstract() |
140 | 142 | ->lazy() |
141 | 143 |
|
|
146 | 148 | ]), |
147 | 149 | ]) |
148 | 150 |
|
149 | | - ->set('doctrine.orm.manager_configurator.abstract', param('doctrine.orm.manager_configurator.class')) |
| 151 | + ->set('doctrine.orm.manager_configurator.abstract', (string) param('doctrine.orm.manager_configurator.class')) |
150 | 152 | ->abstract() |
151 | 153 | ->args([ |
152 | 154 | [], |
153 | 155 | [], |
154 | 156 | ]) |
155 | 157 |
|
156 | | - ->set('doctrine.orm.validator.unique', param('doctrine.orm.validator.unique.class')) |
| 158 | + ->set('doctrine.orm.validator.unique', (string) param('doctrine.orm.validator.unique.class')) |
157 | 159 | ->tag('validator.constraint_validator', ['alias' => 'doctrine.orm.validator.unique']) |
158 | 160 | ->args([ |
159 | 161 | service('doctrine'), |
160 | 162 | ]) |
161 | 163 |
|
162 | | - ->set('doctrine.orm.validator_initializer', param('doctrine.orm.validator_initializer.class')) |
| 164 | + ->set('doctrine.orm.validator_initializer', (string) param('doctrine.orm.validator_initializer.class')) |
163 | 165 | ->tag('validator.initializer') |
164 | 166 | ->args([ |
165 | 167 | service('doctrine'), |
166 | 168 | ]) |
167 | 169 |
|
168 | | - ->set('doctrine.orm.security.user.provider', param('doctrine.orm.security.user.provider.class')) |
| 170 | + ->set('doctrine.orm.security.user.provider', (string) param('doctrine.orm.security.user.provider.class')) |
169 | 171 | ->abstract() |
170 | 172 | ->args([ |
171 | 173 | service('doctrine'), |
172 | 174 | ]) |
173 | 175 |
|
174 | | - ->set('doctrine.orm.listeners.resolve_target_entity', param('doctrine.orm.listeners.resolve_target_entity.class')) |
| 176 | + ->set('doctrine.orm.listeners.resolve_target_entity', (string) param('doctrine.orm.listeners.resolve_target_entity.class')) |
175 | 177 |
|
176 | 178 | ->set('doctrine.orm.listeners.doctrine_dbal_cache_adapter_schema_listener', DoctrineDbalCacheAdapterSchemaListener::class) |
177 | 179 | ->args([ |
|
197 | 199 | ]) |
198 | 200 | ->tag('doctrine.event_listener', ['event' => 'postGenerateSchema']) |
199 | 201 |
|
200 | | - ->set('doctrine.orm.naming_strategy.default', param('doctrine.orm.naming_strategy.default.class')) |
| 202 | + ->set('doctrine.orm.naming_strategy.default', (string) param('doctrine.orm.naming_strategy.default.class')) |
201 | 203 |
|
202 | | - ->set('doctrine.orm.naming_strategy.underscore', param('doctrine.orm.naming_strategy.underscore.class')) |
| 204 | + ->set('doctrine.orm.naming_strategy.underscore', (string) param('doctrine.orm.naming_strategy.underscore.class')) |
203 | 205 |
|
204 | | - ->set('doctrine.orm.naming_strategy.underscore_number_aware', param('doctrine.orm.naming_strategy.underscore.class')) |
| 206 | + ->set('doctrine.orm.naming_strategy.underscore_number_aware', (string) param('doctrine.orm.naming_strategy.underscore.class')) |
205 | 207 | ->args([ |
206 | 208 | CASE_LOWER, |
207 | 209 | true, |
208 | 210 | ]) |
209 | 211 |
|
210 | | - ->set('doctrine.orm.quote_strategy.default', param('doctrine.orm.quote_strategy.default.class')) |
| 212 | + ->set('doctrine.orm.quote_strategy.default', (string) param('doctrine.orm.quote_strategy.default.class')) |
211 | 213 |
|
212 | | - ->set('doctrine.orm.quote_strategy.ansi', param('doctrine.orm.quote_strategy.ansi.class')) |
| 214 | + ->set('doctrine.orm.quote_strategy.ansi', (string) param('doctrine.orm.quote_strategy.ansi.class')) |
213 | 215 |
|
214 | | - ->set('doctrine.orm.typed_field_mapper.default', param('doctrine.orm.typed_field_mapper.default.class')) |
| 216 | + ->set('doctrine.orm.typed_field_mapper.default', (string) param('doctrine.orm.typed_field_mapper.default.class')) |
215 | 217 |
|
216 | 218 | ->set('doctrine.ulid_generator', 'Symfony\\Bridge\\Doctrine\\IdGenerator\\UlidGenerator') |
217 | 219 | ->args([ |
|
0 commit comments