jongotlin / arbetsformedlingen-ads-bundle
2.0.0
2020-12-10 14:45 UTC
Requires
- php: ^7.2
- jongotlin/arbetsformedlingen-ads: ^1.0
- symfony/framework-bundle: ^4.0|^5.0
Requires (Dev)
- php-http/guzzle6-adapter: ^1.1
This package is auto-updated.
Last update: 2024-09-11 04:15:41 UTC
README
Symfony 扩展包,用于jongotlin/arbetsformedlingen-ads
安装
使用 composer 和您喜欢的 HTTP 适配器安装(在本例中为 Guzzle 6)
$ composer require php-http/client-implementation:^1.0 php-http/discovery:^1.0 php-http/guzzle6-adapter:^1.0 php-http/httplug:^1.0 php-http/message:^1.0 jongotlin/arbetsformedlingen-ads-bundle:^1.0
在 services.yml 中
services: http.client: class: Http\Adapter\Guzzle6\Client arguments: - '@client' client: class: GuzzleHttp\Client
在 config.yml 中
arbetsformedlingen_ads: http_client: 'http.client' test_environment: true loggers: ['logger', 'your.custom.logger.service_name']
在 AppKernel.php 中
$bundles = array( // ... new JGI\ArbetsformedlingenAdsBundle\ArbetsformedlingenAdsBundle(), );