dev-master
9999999-devAtlas ORM Bundle for Symfony
MIT
The Requires
by Cydrick Nonog
v1.0.0
1.0.0.0Atlas ORM Bundle for Symfony
MIT
The Requires
by Cydrick Nonog
Wallogit.com
2017 © Pedro Peláez
Atlas ORM Bundle for Symfony
# [Deprecated] Atlas ORM Bundle, (*1)
This bundle is already deprecated as alternative you can use https://github.com/atlasphp/Atlas.Symfony, (*2)
Symfony Bundle for http://atlasphp.io, (*3)
Install using composer, (*4)
composer require cydrickn/atlas-orm-bundle
cydrickn_atlas:
connection:
driver: extendedpdo_mysql
host: 'database host'
database: 'database name'
username: 'database username'
password: 'database user password'
mapper: []
The bundle only have one service namely cydrickn_atlas.service. The service class is Cydrickn\AtlasBundle\Services\AtlasService., (*5)
In Controller, (*6)
<?php namespace ...; use Atlas\Orm\Atlas; use Cydrickn\AtlasBundle\Services\AtlasService; class ...Controller extends BaseController { ... private function getAtlasService(): AtlasService { return $this->get('cydrickn_atlas.service'); } private function getAtlasOrm(): Atlas { return $this->getAtlasService()->getAtlas(); } }
Passing to service, (*7)
services:
myservice.pass_service:
class: ...
arguments:
- '@cydrickn_atlas.service'
myservice.pass_atlas_orm:
class: ...
arguments:
- '@=service("cydrickn_atlas.service").getAtlas()'
For more information about atlas you can visit this site http://atlasphp.io By the way the the bundle use the atlas orm version 2., (*8)
Atlas ORM Bundle for Symfony
MIT
Atlas ORM Bundle for Symfony
MIT