vendor/symfonycasts/reset-password-bundle/src/SymfonyCastsResetPasswordBundle.php line 20

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the SymfonyCasts ResetPasswordBundle package.
  4. * Copyright (c) SymfonyCasts <https://symfonycasts.com/>
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. */
  8. namespace SymfonyCasts\Bundle\ResetPassword;
  9. use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
  10. use Symfony\Component\HttpKernel\Bundle\Bundle;
  11. use SymfonyCasts\Bundle\ResetPassword\DependencyInjection\SymfonyCastsResetPasswordExtension;
  12. /**
  13. * @author Jesse Rushlow <jr@rushlow.dev>
  14. * @author Ryan Weaver <ryan@symfonycasts.com>
  15. */
  16. class SymfonyCastsResetPasswordBundle extends Bundle
  17. {
  18. public function getContainerExtension(): ?ExtensionInterface
  19. {
  20. if (null === $this->extension) {
  21. $this->extension = new SymfonyCastsResetPasswordExtension();
  22. }
  23. return $this->extension ?: null;
  24. }
  25. }