vendor/gpslab/geoip2/src/GpsLabGeoIP2Bundle.php line 18

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * GpsLab component.
  5. *
  6. * @author Peter Gribanov <info@peter-gribanov.ru>
  7. * @copyright Copyright (c) 2017, Peter Gribanov
  8. * @license http://opensource.org/licenses/MIT
  9. */
  10. namespace GpsLab\Bundle\GeoIP2Bundle;
  11. use GpsLab\Bundle\GeoIP2Bundle\DependencyInjection\GpsLabGeoIP2Extension;
  12. use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
  13. use Symfony\Component\HttpKernel\Bundle\Bundle;
  14. class GpsLabGeoIP2Bundle extends Bundle
  15. {
  16. /**
  17. * @return ExtensionInterface|null
  18. */
  19. public function getContainerExtension(): ?ExtensionInterface
  20. {
  21. if (null === $this->extension) {
  22. $this->extension = new GpsLabGeoIP2Extension();
  23. }
  24. return $this->extension ?: null;
  25. }
  26. }