/** * Handle an incoming request. * * @param Request $request * @param Closure $next * * @return mixed */ public function handle($request, Closure $next) { try { /** @var \Illuminate\Http\Response $response */ $response = $next($request); } catch (Exception $e) { $response = $this->handleException($request, $e); } if ($this->codex->config('dev.enabled', false) === true && $this->codex->config('dev.debugbar', false) === true) { } $this->codex->config('dev.debugbar', false) && $this->handleDebugbar($response); $this->codex->config('dev.hookpoints', false) && $this->handleHookPoints(); return $response; }
/** * This will get the configured macros. It merges (if defined) the global config, project config and document attributes. * * Project macros will overide global macros with the same name. * Document macros will overide project macros with the same name. * Other then that, everything will be merged/inherited. * * @return array The collected macros as id(used for regex) > handler(the class string name with @ method callsign) */ protected function getAllMacroDefinitions() { $tags = $this->codex->config('processors.macros', []); $tags = array_merge($tags, $this->project->config('processors.macros', [])); return array_merge($tags, $this->document->attr('processors.macros', [])); }
public function getLinkActions() { $definitions = $this->codex->config('processors.links', []); $definitions = array_merge($definitions, $this->config['links']); return array_merge($definitions, $this->document->attr('processors.links', [])); }