- /**
- * Returns the Database of the Application
- *
- * @return Database
- */
- public function getDBA()
- {
- return $this->database;
- }
-
- /**
- * @deprecated 2019.09 - use Page->registerStylesheet instead
- * @see Page::registerStylesheet()
- */
- public function registerStylesheet($path)
- {
- $this->page->registerStylesheet($path);
- }
-
- /**
- * @deprecated 2019.09 - use Page->registerFooterScript instead
- * @see Page::registerFooterScript()
- */
- public function registerFooterScript($path)
- {
- $this->page->registerFooterScript($path);
- }
-
- /**
- * @param Database $database The Friendica Database
- * @param Configuration $config The Configuration
- * @param App\Mode $mode The mode of this Friendica app
- * @param BaseURL $baseURL The full base URL of this Friendica app
- * @param LoggerInterface $logger The current app logger
- * @param Profiler $profiler The profiler of this application
- * @param L10n $l10n The translator instance
- * @param App\Arguments $args The Friendica Arguments of the call
- * @param Core\Process $process The process methods
- */
- public function __construct(Database $database, Configuration $config, App\Mode $mode, BaseURL $baseURL, LoggerInterface $logger, Profiler $profiler, L10n $l10n, Arguments $args, App\Module $module, App\Page $page, Core\Process $process)
- {
- $this->database = $database;
- $this->config = $config;
- $this->mode = $mode;
- $this->baseURL = $baseURL;
- $this->profiler = $profiler;
- $this->logger = $logger;
- $this->l10n = $l10n;
- $this->args = $args;
- $this->process = $process;
-
- $this->cmd = $args->getCommand();