diff --git a/app/library/Services.php b/app/library/Services.php index 6d92a99..c0b0fc3 100644 --- a/app/library/Services.php +++ b/app/library/Services.php @@ -6,6 +6,7 @@ use Phalcon\DiInterface, Phalcon\Di\FactoryDefault as DiDefault, Phalcon\Config\Adapter\Yaml as Config, Phalcon\Mvc\View, + Phalcon\Mvc\View\Simple as SimpleView, Phalcon\Assets\Manager as AssetsManager, Phalcon\Mvc\Url as UrlResolver, Phalcon\Mvc\View\Engine\Volt as VoltEngine, @@ -362,7 +363,7 @@ class Services extends DiDefault { $config = $this->get('config'); - $view = new Phalcon\Mvc\View\Simple(); + $view = new SimpleView(); $view->setViewsDir($config->application->templateDir); $view->registerEngines([ '.volt' => function ($view, $di) use ($config) { @@ -382,7 +383,7 @@ class Services extends DiDefault protected function _initSharedSendgrid() { - return new SendGrid($this->get('config')->sendgrid->key); + return new \SendGrid($this->get('config')->sendgrid->key); } protected function _initOauth($provider)