Archived
1
0
Fork 0

app/library/Services.php: fixing some namespace issues.

This commit is contained in:
Henrik Hautakoski 2018-08-11 01:13:01 +02:00
parent 2cccbf2f98
commit be0a64a01c
No known key found for this signature in database
GPG key ID: 839F3A7EAFAEAFAA

View file

@ -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)