lib/composer/MenuBundle/src/VisualMedia/MenuBundle/Component/MenuItemFactory.php line 41

Open in your IDE?
  1. <?php
  2. /**
  3. * Menu Item Factory
  4. *
  5. * @author Vincent van Waasbergen <v.vanwaasbergen@visualmedia.nl>
  6. */
  7. namespace VisualMedia\MenuBundle\Component;
  8. use Symfony\Component\Routing\RequestContext;
  9. use Symfony\Component\Translation\TranslatorInterface;
  10. use Symfony\Component\Routing\RouterInterface;
  11. use VisualMedia\LisaBundle\Component\Interfaces\EntityInterface;
  12. use VisualMedia\LisaBundle\Component\Interfaces\MenuItemFactoryInterface;
  13. use VisualMedia\LisaBundle\Component\Interfaces\MenuItemInterface;
  14. /**
  15. * Menu Item Factory
  16. */
  17. abstract class MenuItemFactory implements MenuItemFactoryInterface
  18. {
  19. /**
  20. * @var Router
  21. */
  22. protected $router;
  23. /**
  24. * @var RequestContext
  25. */
  26. protected $context;
  27. /**
  28. * @var string|null
  29. */
  30. protected $defaultLocale;
  31. /**
  32. * @param Router $router
  33. */
  34. public function __construct(RouterInterface $router, RequestContext $context, string $defaultLocale = null)
  35. {
  36. $this->router = $router;
  37. $this->context = $context;
  38. $this->defaultLocale = $defaultLocale;
  39. }
  40. }