2017 © Pedro Peláez
 

library atlas-orm-bundle

Atlas ORM Bundle for Symfony

image

cydrickn/atlas-orm-bundle

Atlas ORM Bundle for Symfony

  • Wednesday, April 11, 2018
  • by cydrickn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 37 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 12 % Grown

The README.md

# [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)

Installation

Install using composer, (*4)

composer require cydrickn/atlas-orm-bundle

Requirements

  • PHP >=7.1
  • Symfony >=4

Configuration

cydrickn_atlas:
    connection:
        driver: extendedpdo_mysql
        host: 'database host'
        database: 'database name'
        username: 'database username'
        password: 'database user password'
    mapper: []

Service

The bundle only have one service namely cydrickn_atlas.service. The service class is Cydrickn\AtlasBundle\Services\AtlasService., (*5)

Usage

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()'

More

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)

The Versions

11/04 2018

dev-master

9999999-dev

Atlas ORM Bundle for Symfony

  Sources   Download

MIT

The Requires

 

by Cydrick Nonog

11/04 2018

v1.0.0

1.0.0.0

Atlas ORM Bundle for Symfony

  Sources   Download

MIT

The Requires

 

by Cydrick Nonog