initial commit
This commit is contained in:
16
src/module/Application/config/controller.config.php
Executable file
16
src/module/Application/config/controller.config.php
Executable file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Application;
|
||||
|
||||
use Ainias\Core\Factory\Controller\ServiceActionControllerFactory;
|
||||
use Application\Controller\AuthorController;
|
||||
use Application\Controller\PwaController;
|
||||
use Application\Controller\StoryController;
|
||||
|
||||
return array(
|
||||
'controllers' => [
|
||||
'factories' => [
|
||||
Controller\IndexController::class => ServiceActionControllerFactory::class,
|
||||
],
|
||||
],
|
||||
);
|
||||
23
src/module/Application/config/doctrine.config.php
Executable file
23
src/module/Application/config/doctrine.config.php
Executable file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Application;
|
||||
|
||||
use Ainias\Core\Connections\MyConnection;
|
||||
use Doctrine\ORM\Mapping\Driver\AnnotationDriver;
|
||||
|
||||
return array(
|
||||
'doctrine' => array(
|
||||
'driver' => array(
|
||||
'orm_default' => array(
|
||||
'drivers' => array(
|
||||
__NAMESPACE__.'\Model' => 'entities_default',
|
||||
),
|
||||
),
|
||||
'entities_default' => array(
|
||||
'paths' => array(
|
||||
__DIR__ . '/../src/Model',
|
||||
)
|
||||
)
|
||||
),
|
||||
),
|
||||
);
|
||||
16
src/module/Application/config/factories.config.php
Executable file
16
src/module/Application/config/factories.config.php
Executable file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace Application;
|
||||
|
||||
use Ainias\Core\Factory\Model\Manager\DefaultManagerFactory;
|
||||
|
||||
return array(
|
||||
'service_manager' => array(
|
||||
'abstract_factories' => array(
|
||||
),
|
||||
'aliases' => array(
|
||||
'translator' => 'MvcTranslator',
|
||||
),
|
||||
'factories' => array(
|
||||
),
|
||||
),
|
||||
);
|
||||
25
src/module/Application/config/manager.config.php
Executable file
25
src/module/Application/config/manager.config.php
Executable file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
namespace Application;
|
||||
|
||||
use Zend\ServiceManager\Factory\InvokableFactory;
|
||||
|
||||
return array(
|
||||
'view_helpers' => array(
|
||||
'factories' => array(
|
||||
),
|
||||
'aliases' => [
|
||||
],
|
||||
'invokables' => [
|
||||
]
|
||||
),
|
||||
'translator' => array(
|
||||
'locale' => 'en_US',
|
||||
'translation_file_patterns' => array(
|
||||
array(
|
||||
'type' => 'gettext',
|
||||
'base_dir' => __DIR__ . '/../language',
|
||||
'pattern' => '%s.mo',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
7
src/module/Application/config/navigation.config.php
Executable file
7
src/module/Application/config/navigation.config.php
Executable file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
return [
|
||||
'navigation' => [
|
||||
'left' => [
|
||||
],
|
||||
],
|
||||
];
|
||||
7
src/module/Application/config/routes.config.php
Executable file
7
src/module/Application/config/routes.config.php
Executable file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
$config = array();
|
||||
foreach (glob(__DIR__ . '/routes/routes.*.php') as $filename) {
|
||||
$config = array_merge_recursive($config, include($filename));
|
||||
}
|
||||
return $config;
|
||||
27
src/module/Application/config/routes/routes.index.php
Executable file
27
src/module/Application/config/routes/routes.index.php
Executable file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Application;
|
||||
|
||||
use Zend\Router\Http\Segment;
|
||||
|
||||
return array(
|
||||
'router' => [
|
||||
'routes' => [
|
||||
'data' => [
|
||||
'child_routes' => [
|
||||
'clock' => [
|
||||
'type' => Segment::class,
|
||||
'options' => [
|
||||
'route' => '/clock',
|
||||
'defaults' => [
|
||||
'controller' => Controller\IndexController::class,
|
||||
'action' => 'clock',
|
||||
'resource' => 'default',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
);
|
||||
Reference in New Issue
Block a user