From 8abf43c02e2eea4c111dc3af61ccf248f7c4506a Mon Sep 17 00:00:00 2001 From: Maksim Kotlyar Date: Tue, 30 Oct 2018 18:17:07 +0200 Subject: [PATCH] add sf4 support. --- composer.json | 6 ++++-- .../PlivoBundle/DependencyInjection/InvitPlivoExtension.php | 2 +- src/Invit/PlivoBundle/Resources/config/services.yml | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index a673ce1..d33a344 100644 --- a/composer.json +++ b/composer.json @@ -12,8 +12,10 @@ "minimum-stability": "stable", "require": { "php": "^7.1", - "symfony/dependency-injection": "^2.7 || ^3.0", - "symfony/config": "^2.7 || ^3.0", + "symfony/dependency-injection": "^3.4 | ^4.1", + "symfony/http-foundation": "^3.4 | ^4.1", + "symfony/http-kernel": "^3.4 | ^4.1", + "symfony/config": "^3.4 | ^4.1", "plivo/plivo-php": "^4.0.0" }, "autoload": { diff --git a/src/Invit/PlivoBundle/DependencyInjection/InvitPlivoExtension.php b/src/Invit/PlivoBundle/DependencyInjection/InvitPlivoExtension.php index e3af18c..d02af23 100644 --- a/src/Invit/PlivoBundle/DependencyInjection/InvitPlivoExtension.php +++ b/src/Invit/PlivoBundle/DependencyInjection/InvitPlivoExtension.php @@ -4,7 +4,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; -use Symfony\Component\HttpKernel\DependencyInjection\Extension; +use Symfony\Component\DependencyInjection\Extension\Extension; use Symfony\Component\DependencyInjection\Loader; class InvitPlivoExtension extends Extension diff --git a/src/Invit/PlivoBundle/Resources/config/services.yml b/src/Invit/PlivoBundle/Resources/config/services.yml index d500eef..c566b8e 100644 --- a/src/Invit/PlivoBundle/Resources/config/services.yml +++ b/src/Invit/PlivoBundle/Resources/config/services.yml @@ -1,9 +1,11 @@ services: Invit\PlivoBundle\Service\PlivoApi: + public: true arguments: - '%invit_plivo.auth.auth_id%' - '%invit_plivo.auth.auth_token%' Invit\PlivoBundle\Helper\PlivoHelper: + public: true arguments: - '%invit_plivo.auth.auth_token%'