app/library/Services.php: fixing some namespace issues.
This commit is contained in:
parent
2cccbf2f98
commit
be0a64a01c
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Reference in a new issue