pattern = $pattern; $this->callable = $callable; } /** * Invoke the group to register any Routable objects within it. * * @param App $app The App to bind the callable to. */ public function __invoke(App $app = null) { $callable = $this->resolveCallable($this->callable); if ($callable instanceof Closure && $app !== null) { $callable = $callable->bindTo($app); } $callable(); } }