config->getCache(); } /** * The basepath of this app * * @return string */ public function getBasePath() { return $this->config->get('system', 'basepath'); } /** * The Logger of this app * * @return LoggerInterface */ public function getLogger() { return $this->logger; } /** * The profiler of this app * * @return Profiler */ public function getProfiler() { return $this->profiler; } /** * Returns the Mode of the Application * * @return App\Mode The Application Mode */ public function getMode() { return $this->mode; } /** * Register a stylesheet file path to be included in the tag of every page. * Inclusion is done in App->initHead(). * The path can be absolute or relative to the Friendica installation base folder. * * @see initHead() * * @param string $path * @throws InternalServerErrorException */ public function registerStylesheet($path) { if (mb_strpos($path, $this->getBasePath() . DIRECTORY_SEPARATOR) === 0) { $path = mb_substr($path, mb_strlen($this->getBasePath() . DIRECTORY_SEPARATOR)); } $this->stylesheets[] = trim($path, '/'); } /** * Register a javascript file path to be included in the