diff options
author | devega <miguel.vega@sic.uhu.es> | 2020-03-24 12:36:46 +0100 |
---|---|---|
committer | devega <miguel.vega@sic.uhu.es> | 2020-03-24 12:36:46 +0100 |
commit | 7a51e7aeffd72798fcd8cfaa1f27535b5e959b07 (patch) | |
tree | dd19baeca029deaaa6b356bb4884bf9d93728250 /admin/WebConsole3/backend/config | |
parent | aafce73629d6b5f5d0a055e109d6112a4bccbb14 (diff) |
Updated Symfony 3.x to 4.xwebconsole3
- Reorganizado los Repositorios de Symfony
- Registrado los commandos como Servicio
- Actualizado la configuraiĆ³n de Doctrine
- Modificado el fichero update e installer.
Diffstat (limited to 'admin/WebConsole3/backend/config')
-rw-r--r-- | admin/WebConsole3/backend/config/packages/doctrine.yaml | 35 | ||||
-rw-r--r-- | admin/WebConsole3/backend/config/services.yaml | 9 |
2 files changed, 27 insertions, 17 deletions
diff --git a/admin/WebConsole3/backend/config/packages/doctrine.yaml b/admin/WebConsole3/backend/config/packages/doctrine.yaml index 1db3d1d6..e44ca346 100644 --- a/admin/WebConsole3/backend/config/packages/doctrine.yaml +++ b/admin/WebConsole3/backend/config/packages/doctrine.yaml @@ -1,21 +1,22 @@ doctrine: dbal: - url: '%env(resolve:DATABASE_URL)%' - - # IMPORTANT: You MUST configure your server version, - # either here or in the DATABASE_URL env var (see .env file) - #server_version: '5.7' + default_connection: default + connections: + default: + url: '%env(DATABASE_URL)%' + driver: 'pdo_mysql' + server_version: '5.7' + charset: UTF8 + og_1: + url: '%env(DATABASE_OG1_URL)%' + driver: 'pdo_mysql' + server_version: '5.7' + charset: UTF8 orm: - auto_generate_proxy_classes: true + default_entity_manager: default + #auto_generate_proxy_classes: true #naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware #auto_mapping: true - #mappings: - # App: - # is_bundle: false - # type: annotation - # dir: '%kernel.project_dir%/src/Entity' - # prefix: 'App\Entity' - # alias: App entity_managers: default: connection: default @@ -26,7 +27,7 @@ doctrine: FOSUserBundle: ~ FOSOAuthServerBundle: ~ #OpengnsysMigrationBundle: ~ - #og_1: - # connection: og_1 - # mappings: - # OpengnsysMigrationBundle: ~ + og_1: + connection: og_1 + mappings: + OpengnsysMigrationBundle: ~ diff --git a/admin/WebConsole3/backend/config/services.yaml b/admin/WebConsole3/backend/config/services.yaml index a8b4d299..16c22923 100644 --- a/admin/WebConsole3/backend/config/services.yaml +++ b/admin/WebConsole3/backend/config/services.yaml @@ -33,3 +33,12 @@ services: # add more service definitions when explicit configuration is needed # please note that last definitions always *replace* previous ones + + # COMMAND + Opengnsys\CoreBundle\Command\CreateClientCommand: + arguments: ['@fos_oauth_server.client_manager.default'] + tags: [{name: console.command, command: opengnsys:oauth-server:client:create}] + + Opengnsys\MigrationBundle\Command\MigrateCommand: + arguments: ['@doctrine.orm.default_entity_manager', '@doctrine.orm.og_1_entity_manager', '@monolog.logger.og_migration'] + tags: [{name: console.command, command: opengnsys:migration:execute}]
\ No newline at end of file |