Commit b5d156385beb85c9b22368d9f151cfdfc5a0ed52

Authored by Alex Savenko
1 parent 5ba18651

docs

Showing 1 changed file with 3 additions and 12 deletions   Show diff stats
app/library/App/Bootstrap/RouteBootstrap.php
@@ -8,15 +8,6 @@ use Phalcon\Config; @@ -8,15 +8,6 @@ use Phalcon\Config;
8 use Phalcon\DiInterface; 8 use Phalcon\DiInterface;
9 use PhalconRest\Api; 9 use PhalconRest\Api;
10 10
11 -use Google_Client;  
12 -use Google_Service_AnalyticsReporting;  
13 -use Google_Service_AnalyticsReporting_DateRange;  
14 -use Google_Service_AnalyticsReporting_Metric;  
15 -use Google_Service_AnalyticsReporting_ReportRequest;  
16 -use Google_Service_AnalyticsReporting_GetReportsRequest;  
17 -  
18 -  
19 -  
20 11
21 class RouteBootstrap implements BootstrapInterface 12 class RouteBootstrap implements BootstrapInterface
22 { 13 {
@@ -45,9 +36,9 @@ class RouteBootstrap implements BootstrapInterface @@ -45,9 +36,9 @@ class RouteBootstrap implements BootstrapInterface
45 /** @var \Phalcon\Mvc\View\Simple $view */ 36 /** @var \Phalcon\Mvc\View\Simple $view */
46 $view = $api->di->get(Services::VIEW); 37 $view = $api->di->get(Services::VIEW);
47 38
48 - $view->setVar('title', $config->application->title);  
49 - $view->setVar('description', $config->application->description);  
50 - $view->setVar('documentationPath', $config->hostName . '/export/documentation.json'); 39 + $view->setVar('title', $config->get("application")->title);
  40 + $view->setVar('description', $config->get("application")->description);
  41 + $view->setVar('documentationPath', $config->get("hostName") . '/export/documentation.json');
51 return $view->render('general/documentation'); 42 return $view->render('general/documentation');
52 }); 43 });
53 } 44 }