update to pc

This commit is contained in:
silas
2018-05-23 19:04:35 +02:00
parent f7cbd1da71
commit 5cc52cf062
38 changed files with 2148 additions and 997 deletions

View File

@@ -3,14 +3,13 @@
namespace Application;
use Ainias\Core\Factory\Controller\ServiceActionControllerFactory;
use Application\Controller\AuthorController;
use Application\Controller\PwaController;
use Application\Controller\StoryController;
use Application\Controller\SyncController;
return array(
'controllers' => [
'factories' => [
Controller\IndexController::class => ServiceActionControllerFactory::class,
SyncController::class => ServiceActionControllerFactory::class
],
],
);

View File

@@ -2,6 +2,10 @@
namespace Application;
use Ainias\Core\Factory\Model\Manager\DefaultManagerFactory;
use Application\Model\Manager\AuthTokenManager;
use Application\Model\Manager\LevelManager;
use Application\Model\Manager\RatingManager;
use Application\Model\Manager\WordManager;
return array(
'service_manager' => array(
@@ -11,6 +15,10 @@ return array(
'translator' => 'MvcTranslator',
),
'factories' => array(
AuthTokenManager::class => DefaultManagerFactory::class,
LevelManager::class => DefaultManagerFactory::class,
RatingManager::class => DefaultManagerFactory::class,
WordManager::class => DefaultManagerFactory::class,
),
),
);

View File

@@ -0,0 +1,69 @@
<?php
namespace Application;
use Application\Controller\SyncController;
use Zend\Router\Http\Segment;
return array(
'router' => [
'routes' => [
'data' => [
'child_routes' => [
'wordRotator' => [
'type' => Segment::class,
'options' => [
'route' => '/wordRotator',
],
'child_routes' => [
// 'words' => [
// 'type' => Segment::class,
// 'options' => [
// 'route' => '/words',
// 'defaults' => [
// 'controller' => SyncController::class,
// 'action' => 'getWords',
// 'resource' => 'default',
// ]
// ],
// ],
'levels' => [
'type' => Segment::class,
'options' => [
'route' => '/levels',
'defaults' => [
'controller' => SyncController::class,
'action' => 'getLevels',
'resource' => 'default',
]
],
],
// 'getAuthToken' => [
// 'type' => Segment::class,
// 'options' => [
// 'route' => '/token',
// 'defaults' => [
// 'controller' => SyncController::class,
// 'action' => 'getAuthToken',
// 'resource' => 'default',
// ]
// ],
// ],
// 'rate' => [
// 'type' => Segment::class,
// 'options' => [
// 'route' => '/rate',
// 'defaults' => [
// 'controller' => SyncController::class,
// 'action' => 'rate',
// 'resource' => 'default',
// ]
// ],
// ],
],
],
],
],
],
],
);