Skip to content

Commit 84c6195

Browse files
committed
Merged in remove_prepend_method (pull request #2)
Removed prepend method from Extension
2 parents 79f1796 + 900c74b commit 84c6195

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

DependencyInjection/NetgenEnhancedBinaryFileExtension.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@
66
use Symfony\Component\Config\FileLocator;
77
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
88
use Symfony\Component\DependencyInjection\Loader;
9-
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
10-
use Symfony\Component\Config\Resource\FileResource;
11-
use Symfony\Component\Yaml\Yaml;
129

13-
class NetgenEnhancedBinaryFileExtension extends Extension implements PrependExtensionInterface
10+
class NetgenEnhancedBinaryFileExtension extends Extension
1411
{
1512
/**
1613
* {@inheritDoc}
@@ -26,17 +23,4 @@ public function load( array $configs, ContainerBuilder $container )
2623
$loader->load( 'mime.yml' );
2724

2825
}
29-
30-
/**
31-
* Allow an extension to prepend the extension configurations.
32-
*
33-
* @param \Symfony\Component\DependencyInjection\ContainerBuilder $container
34-
*/
35-
public function prepend( ContainerBuilder $container )
36-
{
37-
$configFile = __DIR__ . '/../Resources/config/ezpublish.yml';
38-
$config = Yaml::parse( file_get_contents( $configFile ) );
39-
$container->prependExtensionConfig( 'ezpublish', $config );
40-
$container->addResource( new FileResource( $configFile ) );
41-
}
4226
}

Resources/config/ezpublish.yml

Whitespace-only changes.

0 commit comments

Comments
 (0)