Skip to content

Commit

Permalink
change load container extension
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-gribanov committed Jan 24, 2017
1 parent 8a0d691 commit 04968a5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/GpsLabGeoIP2Bundle.php
Expand Up @@ -9,8 +9,26 @@

namespace GpsLab\Bundle\GeoIP2Bundle;

use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\HttpKernel\Bundle\Bundle;

class GpsLabGeoIP2Bundle extends Bundle
{
/**
* @return ExtensionInterface|bool
*/
public function getContainerExtension()
{
if (null === $this->extension) {
$extension = $this->createContainerExtension();

if ($extension instanceof ExtensionInterface) {
$this->extension = $extension;
} else {
$this->extension = false;
}
}

return $this->extension;
}
}

0 comments on commit 04968a5

Please sign in to comment.