2017 © Pedro Peláez
 

symfony-bundle repository-as-a-service

Symfony2 Bundle which you can register repositories easily.

image

shapecode/repository-as-a-service

Symfony2 Bundle which you can register repositories easily.

  • Tuesday, June 12, 2018
  • by Nicklog
  • Repository
  • 1 Watchers
  • 2 Stars
  • 970 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 15 Versions
  • 2 % Grown

The README.md

Symfony - Repository as a Service (RaaS)

SensioLabsInsight Dependency Status Latest Stable Version Total Downloads License, (*1)

This bundle allows to register repositories as a service., (*2)

Install instructions

Installing this bundle can be done through these simple steps:, (*3)

Add the bundle to your project as a composer dependency:, (*4)

// composer.json
{
    // ...
    require: {
        // ...
        "shapecode/repository-as-a-service": "~1.2"
    }
}

Update your composer installation:, (*5)

$ composer update

Add the bundle to your application kernel:, (*6)

<?php

// application/ApplicationKernel.php
public function registerBundles()
{
    // ...
    $bundle = array(
        // ...
        new Shapecode\Bundle\RasSBundle\ShapecodeRasSBundle(),
    );
    // ...

    return $bundles;
}

Start using the bundle and set repositories as services:, (*7)

app.repository.example:
    class: %app.repository.example.class%
    tags:
        -  { name: doctrine.repository, class: %app.entity.example.class%, alias: example_repository }

or let the bundle do the job for you. It creates automatically services for you. Just access it with "lowercaseentitnyname_repository"., (*8)

<?php

$this->getContainer()->get('lowercaseentitnyname_repository');

The old way to get repository is also supported. If you get them like this ..., (*9)

<?php

$this->getRepository('ShapecodeRasSBundle:TestEntity');

... you get the service off the repository instead., (*10)

The Versions

16/11 2017
27/10 2016

1.2.5

1.2.5.0 https://github.com/shapecode/repository-as-a-service-bundle

Symfony2 Bundle which you can register repositories easily.

  Sources   Download

MIT

The Requires

 

The Development Requires

repository service bundle doctrine symfony shapecode

25/10 2016

dev-release/1.2

dev-release/1.2 https://github.com/shapecode/repository-as-a-service-bundle

Symfony2 Bundle which you can register repositories easily.

  Sources   Download

MIT

The Requires

 

The Development Requires

repository service bundle doctrine symfony shapecode

25/07 2016

1.2.4

1.2.4.0 https://github.com/shapecode/repository-as-a-service-bundle

Symfony2 Bundle which you can register repositories easily.

  Sources   Download

MIT

The Requires

 

The Development Requires

repository service bundle doctrine symfony shapecode

10/06 2016

1.2.3

1.2.3.0 https://github.com/shapecode/repository-as-a-service-bundle

Symfony2 Bundle which you can register repositories easily.

  Sources   Download

MIT

The Requires

 

The Development Requires

repository service bundle doctrine symfony shapecode

23/02 2016

1.2.2

1.2.2.0 http://shapecode.de

Symfony2 Bundle which you can register repositories easily.

  Sources   Download

MIT

The Requires

 

repository service bundle doctrine symfony shapecode

22/02 2016

1.2.1

1.2.1.0 http://shapecode.de

Symfony2 Bundle which you can register repositories easily.

  Sources   Download

MIT

The Requires

 

repository service bundle doctrine symfony shapecode

03/01 2016
03/01 2016

1.1.1

1.1.1.0 http://shapecode.de

  Sources   Download

MIT

The Requires

 

repository service bundle doctrine symfony shapecode

23/06 2015

1.1.0

1.1.0.0 http://shapecode.de

  Sources   Download

MIT

The Requires

 

repository service bundle doctrine symfony shapecode