/** * Renders the client view menu. * * @param ItemInterface $menu */ public function clientViewMenu(ItemInterface $menu) { $request = $this->container->get('request_stack')->getCurrentRequest(); $this->clientsMenu($menu); $menu->addDivider(); $menu->addChild(ClientMenu::view($request)); $menu->addChild(InvoiceMenu::create($request)); $menu->addChild(QuoteMenu::create($request)); }
/** * Renders the invoice index menu. * * @param ItemInterface $menu */ public function invoicesMenu(ItemInterface $menu) { $menu->addChild(InvoiceMenu::listMenu()); $menu->addChild(InvoiceMenu::create()); }