Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/shapecode/repository-as-a-service-bundle
- Owner: shapecode
- Created: 2016-06-06T09:01:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-04T15:29:51.000Z (over 5 years ago)
- Last Synced: 2024-03-27T08:01:12.484Z (8 months ago)
- Language: PHP
- Size: 31.3 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.