<?php 
declare(strict_types=1); 
 
/** 
 * GpsLab component. 
 * 
 * @author    Peter Gribanov <info@peter-gribanov.ru> 
 * @copyright Copyright (c) 2017, Peter Gribanov 
 * @license   http://opensource.org/licenses/MIT 
 */ 
 
namespace GpsLab\Bundle\GeoIP2Bundle; 
 
use GpsLab\Bundle\GeoIP2Bundle\DependencyInjection\GpsLabGeoIP2Extension; 
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; 
use Symfony\Component\HttpKernel\Bundle\Bundle; 
 
class GpsLabGeoIP2Bundle extends Bundle 
{ 
    /** 
     * @return ExtensionInterface|null 
     */ 
    public function getContainerExtension(): ?ExtensionInterface 
    { 
        if (null === $this->extension) { 
            $this->extension = new GpsLabGeoIP2Extension(); 
        } 
 
        return $this->extension ?: null; 
    } 
}