update to pc
This commit is contained in:
@@ -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
|
||||
],
|
||||
],
|
||||
);
|
||||
@@ -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,
|
||||
),
|
||||
),
|
||||
);
|
||||
69
src/module/Application/config/routes/routes.sync.php
Normal file
69
src/module/Application/config/routes/routes.sync.php
Normal 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',
|
||||
// ]
|
||||
// ],
|
||||
// ],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
);
|
||||
Reference in New Issue
Block a user