initial commit

This commit is contained in:
silas
2018-05-15 17:30:16 +02:00
commit 1efcd2526b
105 changed files with 18204 additions and 0 deletions

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

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

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

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

View File

@@ -0,0 +1,7 @@
<?php
return [
'navigation' => [
'left' => [
],
],
];

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

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