Skip to content

Instantly share code, notes, and snippets.

@MarioBlazek
Created February 6, 2020 13:09
Show Gist options
  • Save MarioBlazek/e39b6f2d3c9ac544f743be3cb435f042 to your computer and use it in GitHub Desktop.
Save MarioBlazek/e39b6f2d3c9ac544f743be3cb435f042 to your computer and use it in GitHub Desktop.
# Learn more about services, parameters and containers at
# https://symfony.com/doc/current/service_container.html
parameters:
app.default.cats_api.token: 'your-token-here'
app.default.cats_api.url: 'https://api.thecatapi.com/v1/categories'
services:
app.controller.cat_api:
class: AppBundle\Controller\CatApiController
parent: ezpublish.controller.base
arguments:
- '@app.http.cat_api_client'
app.http.cat_api_client:
class: AppBundle\Http\CatApiClient
public: true
arguments:
- '@ezpublish.config.resolver'
- '@httplug.client.app'
- '@httplug.message_factory'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment