Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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


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

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

Symfony - Repository as a Service (RaaS)
=======================

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/45d25f2d-0f87-43f7-ba74-b239562c41e1/mini.png)](https://insight.sensiolabs.com/projects/45d25f2d-0f87-43f7-ba74-b239562c41e1)
[![Dependency Status](https://www.versioneye.com/user/projects/57703b696718940052ba8cc2/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/57703b696718940052ba8cc2)
[![Latest Stable Version](https://poser.pugx.org/shapecode/repository-as-a-service/v/stable)](https://packagist.org/packages/shapecode/repository-as-a-service)
[![Total Downloads](https://poser.pugx.org/shapecode/repository-as-a-service/downloads)](https://packagist.org/packages/shapecode/repository-as-a-service)
[![License](https://poser.pugx.org/shapecode/repository-as-a-service/license)](https://packagist.org/packages/shapecode/repository-as-a-service)

This bundle allows to register repositories as a service.

Install instructions
--------------------------------

Installing this bundle can be done through these simple steps:

Add the bundle to your project as a composer dependency:
```javascript
// composer.json
{
// ...
require: {
// ...
"shapecode/repository-as-a-service": "~1.2"
}
}
```

Update your composer installation:
```sh
$ composer update
```

Add the bundle to your application kernel:
```php
getContainer()->get('lowercaseentitnyname_repository');
```

The old way to get repository is also supported. If you get them like this ...

```php
getRepository('ShapecodeRasSBundle:TestEntity');
```

... you get the service off the repository instead.