/** * @param string $controllerAction * * @return mixed * * * Add the missing implementation by using this as inspiration: * https://gist.github.com/radmen/92200c62b633320b98a8 */ protected function uriGenerator($controllerAction) { /** @var array $routes */ $routes = Application::getInstance()->getRoutes(); foreach ($routes as $route) { if ($route['action'] === $controllerAction) { return $route; } } }
/** * Set the globally available instance of the container. * * @return static * @static */ public static function getInstance() { //Method inherited from \Illuminate\Container\Container return \Laravel\Lumen\Application::getInstance(); }