11<?php
22
3+ use Awesome \Plugin as AwesomePlugin ;
34use Cake \Cache \Cache ;
5+ use Cake \Controller \Controller ;
46use Cake \Core \Configure ;
57use Cake \Core \Plugin ;
68use Cake \Database \Type ;
9+ use Cake \Datasource \ConnectionManager ;
10+ use Controllers \Plugin as ControllersPlugin ;
11+ use IdeHelper \Plugin as IdeHelperPlugin ;
12+ use MyNamespace \MyPlugin \Plugin as MyNamespaceMyPluginPlugin ;
13+ use Relations \Plugin as RelationsPlugin ;
14+ use Shim \Plugin as ShimPlugin ;
715
816if (!defined ('DS ' )) {
917 define ('DS ' , DIRECTORY_SEPARATOR );
7078Type::build ('datetime ' );
7179Type::build ('timestamp ' );
7280
73- class_alias (Cake \ Controller \ Controller::class, 'App\Controller\AppController ' );
81+ class_alias (Controller::class, 'App\Controller\AppController ' );
7482
75- Plugin::getCollection ()->add (new IdeHelper \ Plugin ());
76- Plugin::getCollection ()->add (new Shim \ Plugin ());
77- Plugin::getCollection ()->add (new Awesome \ Plugin ());
78- Plugin::getCollection ()->add (new Controllers \ Plugin ());
79- Plugin::getCollection ()->add (new Relations \ Plugin ());
80- Plugin::getCollection ()->add (new MyNamespace \ MyPlugin \ Plugin ());
83+ Plugin::getCollection ()->add (new IdeHelperPlugin ());
84+ Plugin::getCollection ()->add (new ShimPlugin ());
85+ Plugin::getCollection ()->add (new AwesomePlugin ());
86+ Plugin::getCollection ()->add (new ControllersPlugin ());
87+ Plugin::getCollection ()->add (new RelationsPlugin ());
88+ Plugin::getCollection ()->add (new MyNamespaceMyPluginPlugin ());
8189
8290if (getenv ('db_dsn ' )) {
83- Cake \ Datasource \ ConnectionManager::setConfig ('test ' , [
91+ ConnectionManager::setConfig ('test ' , [
8492 'className ' => 'Cake\Database\Connection ' ,
8593 'url ' => getenv ('db_dsn ' ),
8694 'timezone ' => 'UTC ' ,
@@ -98,7 +106,7 @@ class_alias(Cake\Controller\Controller::class, 'App\Controller\AppController');
98106 //putenv('db_dsn=postgres://[email protected] /test'); 99107}
100108
101- Cake \ Datasource \ ConnectionManager::setConfig ('test ' , [
109+ ConnectionManager::setConfig ('test ' , [
102110 'url ' => getenv ('db_dsn ' ),
103111 'driver ' => getenv ('db_class ' ),
104112 'database ' => getenv ('db_database ' ),
0 commit comments