https://github.com/shapecode/repository-as-a-service-bundle
https://github.com/shapecode/repository-as-a-service-bundle
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/shapecode/repository-as-a-service-bundle
- Owner: shapecode
- Created: 2016-06-06T09:01:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-04T15:29:51.000Z (about 6 years ago)
- Last Synced: 2025-03-23T19:39:08.007Z (about 2 months ago)
- Language: PHP
- Size: 31.3 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Symfony - Repository as a Service (RaaS)
=======================[](https://insight.sensiolabs.com/projects/45d25f2d-0f87-43f7-ba74-b239562c41e1)
[](https://www.versioneye.com/user/projects/57703b696718940052ba8cc2)
[](https://packagist.org/packages/shapecode/repository-as-a-service)
[](https://packagist.org/packages/shapecode/repository-as-a-service)
[](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.