public function __construct(FactoryInterface $factory, ItemInterface $menu, Router $router) { $this->factory = $factory; $this->menu = $menu; $this->router = $router; }