| @@ -28,8 +28,12 @@ | ||
| 28 | 28 | |
| 29 | 29 | $container[ 'depicter.services.cache.document' ] = function () { |
| 30 | 30 | return new DatabaseCache('depicter_doc_id_'); |
| 31 | 31 | }; |
| 32 | + // persistent database cache module | |
| 33 | + $container[ 'depicter.services.cache.database' ] = function () { | |
| 34 | + return new DatabaseCache('depicter_d_'); | |
| 35 | + }; | |
| 32 | 36 | |
| 33 | 37 | // register cache alias for retrieving a cache module |
| 34 | 38 | $app->alias( 'cache', function () use ( $app ) { |
| 35 | 39 | $module = !empty( func_get_args()['0'] ) ? strtolower( func_get_args()['0'] ) : 'api'; |
| @@ -75,8 +79,17 @@ | ||
| 75 | 79 | return new AuthorizationService(); |
| 76 | 80 | }; |
| 77 | 81 | $app->alias( 'authorization', 'depicter.security.authorization' ); |
| 78 | 82 | |
| 83 | + $container[ 'depicter.security.authentication' ] = function () { | |
| 84 | + return new AuthenticationService(); | |
| 85 | + }; | |
| 86 | + $app->alias( 'auth', 'depicter.security.authentication' ); | |
| 87 | + | |
| 88 | + $container[ 'depicter.ai.wizard.service' ] = function () { | |
| 89 | + return new AIWizardService(); | |
| 90 | + }; | |
| 91 | + $app->alias( 'AIWizard', 'depicter.ai.wizard.service' ); | |
| 79 | 92 | } |
| 80 | 93 | |
| 81 | 94 | /** |
| 82 | 95 | * {@inheritDoc} |