config->getCache(); } /** * Returns the current config of this node * * @return Configuration */ public function getConfig() { return $this->config; } /** * The basepath of this app * * @return string */ public function getBasePath() { // Don't use the basepath of the config table for basepath (it should always be the config-file one) return $this->config->getCache()->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; } /** * Returns the router of the Application * * @return App\Router */ public function getRouter() { return $this->router; } /** * @return Database */ public function getDatabase() { return $this->database; } /** * @return L10n */ public function getL10n() { return $this->l10n; } /** * 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 */ 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