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:
Gregory PLANCHAT 2012-07-12 02:37:05 +02:00
commit d75265a8fe
451 changed files with 17743 additions and 6334 deletions

View 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',
),
),
);

View 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'
)
)
)
)
);