src/Bundle/GridBundle/DependencyInjection/Compiler/ReplaceLocaleContextPass.php 1 location
|
@@ 22-38 (lines=17) @@
|
19 |
|
/** |
20 |
|
* @author GeLo <[email protected]> |
21 |
|
*/ |
22 |
|
class ReplaceLocaleContextPass implements CompilerPassInterface |
23 |
|
{ |
24 |
|
/** |
25 |
|
* {@inheritdoc} |
26 |
|
*/ |
27 |
|
public function process(ContainerBuilder $container) |
28 |
|
{ |
29 |
|
if (!$container->hasDefinition('lug.locale.context')) { |
30 |
|
return; |
31 |
|
} |
32 |
|
|
33 |
|
$container |
34 |
|
->getDefinition('lug.grid.context.locale') |
35 |
|
->setClass(LocaleContext::class) |
36 |
|
->replaceArgument(0, new Reference('lug.locale.context')); |
37 |
|
} |
38 |
|
} |
39 |
|
|
src/Bundle/ResourceBundle/DependencyInjection/Compiler/ReplaceBase64FileExtensionPass.php 1 location
|
@@ 22-38 (lines=17) @@
|
19 |
|
/** |
20 |
|
* @author GeLo <[email protected]> |
21 |
|
*/ |
22 |
|
class ReplaceBase64FileExtensionPass implements CompilerPassInterface |
23 |
|
{ |
24 |
|
/** |
25 |
|
* {@inheritdoc} |
26 |
|
*/ |
27 |
|
public function process(ContainerBuilder $container) |
28 |
|
{ |
29 |
|
if (!$container->hasDefinition($service = 'ivory.base64_file.form.extension')) { |
30 |
|
return; |
31 |
|
} |
32 |
|
|
33 |
|
$container |
34 |
|
->getDefinition($service) |
35 |
|
->setClass(Base64FileExtension::class) |
36 |
|
->replaceArgument(0, new Reference('lug.resource.routing.parameter_resolver')); |
37 |
|
} |
38 |
|
} |
39 |
|
|