diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-01-12 04:44:22 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-01-12 04:44:22 +0300 |
commit | ff9e415fb23ae06aa68a73e2c3dcf32ff092444b (patch) | |
tree | 5aa0963d3283010a14e67107736f218765dd2005 /misc | |
parent | 636d5400a7aee9fff5b3966b06c5d4e248ce825c (diff) |
Simplified get from container with new shorter method
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cron/updatetoken.php | 2 | ||||
-rw-r--r-- | misc/others/cli-script-bootstrap.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/misc/cron/updatetoken.php b/misc/cron/updatetoken.php index 37513b1a42..3e27babc44 100644 --- a/misc/cron/updatetoken.php +++ b/misc/cron/updatetoken.php @@ -59,7 +59,7 @@ $token = Db::get()->fetchOne("SELECT token_auth WHERE superuser_access = 1 ORDER BY date_registered ASC"); -$filename = StaticContainer::getContainer()->get('path.tmp') . '/cache/token.php'; +$filename = StaticContainer::get('path.tmp') . '/cache/token.php'; $content = "<?php exit; //\t" . $token; file_put_contents($filename, $content); diff --git a/misc/others/cli-script-bootstrap.php b/misc/others/cli-script-bootstrap.php index ac60ae30af..afd3494834 100644 --- a/misc/others/cli-script-bootstrap.php +++ b/misc/others/cli-script-bootstrap.php @@ -30,7 +30,7 @@ define('PIWIK_ENABLE_DISPATCH', false); if (Piwik\Common::isPhpCliMode()) { StaticContainer::setEnvironment('cli'); /** @var ConsoleHandler $consoleLogHandler */ - $consoleLogHandler = StaticContainer::getContainer()->get('Symfony\Bridge\Monolog\Handler\ConsoleHandler'); + $consoleLogHandler = StaticContainer::get('Symfony\Bridge\Monolog\Handler\ConsoleHandler'); $consoleLogHandler->setOutput(new ConsoleOutput()); } |