PHPackages                             openclassrooms/service-proxy-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. openclassrooms/service-proxy-bundle

ActiveSymfony-bundle

openclassrooms/service-proxy-bundle
===================================

Service Proxy Symfony2 Bundle

v2.3.0(4y ago)0216.9k1MITPHPPHP &gt;=7.4

Since Nov 24Pushed 4y ago20 watchersCompare

[ Source](https://github.com/OpenClassrooms/ServiceProxyBundle)[ Packagist](https://packagist.org/packages/openclassrooms/service-proxy-bundle)[ RSS](/packages/openclassrooms-service-proxy-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (9)Versions (11)Used By (0)

ServiceProxyBundle
==================

[](#serviceproxybundle)

[![Build Status](https://camo.githubusercontent.com/345fe82d62bb562e1b87e7a9581ed027ff1d7ebb622bec99707f285c3eb83465/68747470733a2f2f7472617669732d63692e6f72672f4f70656e436c617373726f6f6d732f5365727669636550726f787942756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/OpenClassrooms/ServiceProxyBundle)[![SensioLabsInsight](https://camo.githubusercontent.com/1b48029a4d5168f25bc4d3e6535599c83c3ef756f1b713ae1fe17bc2b35d5ec1/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36386630623764332d386531662d346638632d613834642d3463373266346365633664312f6d696e692e706e67)](https://insight.sensiolabs.com/projects/68f0b7d3-8e1f-4f8c-a84d-4c72f4cec6d1)[![Coverage Status](https://camo.githubusercontent.com/32368b8a0df466a633ead0d14bd940d146df09df851721da77660aedeb7a23b5/68747470733a2f2f636f6465636f762e696f2f67682f4f70656e436c617373726f6f6d732f5365727669636550726f787942756e646c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/OpenClassrooms/ServiceProxyBundle)

The ServiceProxyBundle offers integration of the ServiceProxy library.
ServiceProxy provides functionality to manage technical code over a class:

- Transactional context (not implemented yet)
- Security access (not implemented yet)
- Cache management
- Events (not implemented yet)
- Logs (not implemented yet)

See [ServiceProxy](https://github.com/OpenClassrooms/ServiceProxy) for full details.

Installation
------------

[](#installation)

This bundle can be installed using composer:

`composer require openclassrooms/service-proxy-bundle`
or by adding the package to the composer.json file directly.

```
{
    "require": {
        "openclassrooms/service-proxy-bundle": "*"
    }
}
```

After the package has been installed, add the bundle to the AppKernel.php file:

```
// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new OpenClassrooms\Bundle\ServiceProxyBundle\OpenClassroomsServiceProxyBundle(),
    // ...
);
```

⚠️ The usage of cache capabilities requires the installation of the [openclassrooms/doctrine-cache-extension-bundle](https://github.com/OpenClassrooms/DoctrineCacheExtensionBundle).
See the [openclassrooms/doctrine-cache-extension-bundle installation guide](https://github.com/OpenClassrooms/DoctrineCacheExtensionBundle#installation)for more details.

Configuration
-------------

[](#configuration)

```
# app/config/config.yml

openclassrooms_service_proxy: ~
```

[Full configuration](https://github.com/OpenClassrooms/ServiceProxyBundle#full-configuration)

Usage
-----

[](#usage)

### Cache

[](#cache)

Use the Cache annotation.
See [Service Proxy Cache](https://github.com/OpenClassrooms/ServiceProxy#cache) for more details.

```
