Updated code base & unit tests of WootookCore module
Added a Dependency Injection Started to refactor the Database\Sql\Dml component Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
parent
50538bd332
commit
d75265a8fe
451 changed files with 17743 additions and 6334 deletions
52
src/application/modules/WootookCore/config/module.config.php
Normal file
52
src/application/modules/WootookCore/config/module.config.php
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
return array(
|
||||
'router' => array(
|
||||
'routes' => array(
|
||||
'default' => array(
|
||||
'type' => 'Zend\Mvc\Router\Http\Segment',
|
||||
'options' => array(
|
||||
'route' => '/[:controller[/:action]]',
|
||||
'constraints' => array(
|
||||
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
|
||||
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
|
||||
),
|
||||
'defaults' => array(
|
||||
'controller' => 'IndexController',
|
||||
'action' => 'index',
|
||||
),
|
||||
),
|
||||
),
|
||||
'home' => array(
|
||||
'type' => 'Zend\Mvc\Router\Http\Literal',
|
||||
'options' => array(
|
||||
'route' => '/',
|
||||
'defaults' => array(
|
||||
'controller' => 'IndexController',
|
||||
'action' => 'index',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'controller' => array(
|
||||
'classes' => array(
|
||||
'IndexController' => 'Application\Controller\IndexController'
|
||||
),
|
||||
),
|
||||
'view_manager' => array(
|
||||
'display_not_found_reason' => true,
|
||||
'display_exceptions' => true,
|
||||
'doctype' => 'HTML5',
|
||||
'not_found_template' => 'error/404',
|
||||
'exception_template' => 'error/index',
|
||||
'template_map' => array(
|
||||
'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
|
||||
'index/index' => __DIR__ . '/../view/index/index.phtml',
|
||||
'error/404' => __DIR__ . '/../view/error/404.phtml',
|
||||
'error/index' => __DIR__ . '/../view/error/index.phtml',
|
||||
),
|
||||
'template_path_stack' => array(
|
||||
'application' => __DIR__ . '/../view',
|
||||
),
|
||||
),
|
||||
);
|
||||
33
src/application/modules/WootookCore/config/module.php
Normal file
33
src/application/modules/WootookCore/config/module.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?php return array(
|
||||
'global' => array(
|
||||
'modules' => array(
|
||||
'WootookCore' => array(
|
||||
'version' => '1.5.0'
|
||||
)
|
||||
),
|
||||
'models' => array(
|
||||
'core' => array(
|
||||
'namespace' => 'Wootook\\Core\\Model',
|
||||
'connection' => array(
|
||||
'read' => 'core_read',
|
||||
'write' => 'core_write',
|
||||
'setup' => 'core_setup',
|
||||
)
|
||||
)
|
||||
),
|
||||
'blocks' => array(
|
||||
'core' => array(
|
||||
'namespace' => 'Wootook\\Core\\Block'
|
||||
)
|
||||
)
|
||||
),
|
||||
'frontend' => array(
|
||||
'routes' => array(
|
||||
'core' => array(
|
||||
'controllers' => array(
|
||||
'core' => 'Wootook\\Core\\Controller'
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
Loading…
Reference in a new issue