Permets aux differentes applications d'avoir un proxy vers intra-tuteur-api
Modifier composer.json
:
{
// ...
"require": {
"etna/tutor-proxy-provider": "~2.0.x"
},
"repositories": [
{
"type": "composer",
"url": "https://blu-composer.herokuapp.com"
}
]
}
Le composant etna/config-provider
met à disposition une classe permettant de faire utiliser ce proxy a notre application.
use ETNA\Silex\Provider as ETNAProvider;
class EtnaConfig implements ServiceProviderInterface
{
public function register(Application $app)
{
...
$app->register(new ETNAProvider\TutorProxy\TutorProxy());
...
}
}