Skip to content

Commit

Permalink
SF4 Compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Azoog committed Jun 11, 2018
1 parent 4352c2e commit 5925c8b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3,008 deletions.
28 changes: 20 additions & 8 deletions Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
<argument type="string">%openclassrooms_onesky.api_secret%</argument>
</call>
</service>
<service id="openclassrooms.onesky.event_dispatcher" class="Symfony\Component\EventDispatcher\EventDispatcher"/>
<service id="openclassrooms.onesky.gateways.file" class="OpenClassrooms\Bundle\OneSkyBundle\Gateways\Impl\FileGatewayImpl">
<service id="openclassrooms.onesky.event_dispatcher" class="Symfony\Component\EventDispatcher\EventDispatcher" public="true"/>
<service id="openclassrooms.onesky.gateways.file" class="OpenClassrooms\Bundle\OneSkyBundle\Gateways\Impl\FileGatewayImpl" public="true">
<call method="setClient">
<argument type="service" id="openclassrooms.onesky.client"/>
</call>
<call method="setEventDispatcher">
<argument type="service" id="openclassrooms.onesky.event_dispatcher"/>
</call>
</service>
<service id="openclassrooms.onesky.gateways.language" class="OpenClassrooms\Bundle\OneSkyBundle\Gateways\Impl\LanguageGatewayImpl">
<service id="openclassrooms.onesky.gateways.language" class="OpenClassrooms\Bundle\OneSkyBundle\Gateways\Impl\LanguageGatewayImpl" public="true">
<call method="setClient">
<argument type="service" id="openclassrooms.onesky.client"/>
</call>
Expand All @@ -28,7 +28,7 @@
<argument type="string">%openclassrooms_onesky.project_id%</argument>
</call>
</service>
<service id="openclassrooms.onesky.model.file_factory" class="OpenClassrooms\Bundle\OneSkyBundle\Model\Impl\FileFactoryImpl">
<service id="openclassrooms.onesky.model.file_factory" class="OpenClassrooms\Bundle\OneSkyBundle\Model\Impl\FileFactoryImpl" public="true">
<call method="setKeepingAllStrings">
<argument type="string">%openclassrooms_onesky.keep_all_strings%</argument>
</call>
Expand All @@ -45,21 +45,21 @@
<argument type="string">%openclassrooms_onesky.source_locale%</argument>
</call>
</service>
<service id="openclassrooms.onesky.model.language_factory" class="OpenClassrooms\Bundle\OneSkyBundle\Model\Impl\LanguageFactoryImpl"/>
<service id="openclassrooms.onesky.services.file_service" class="OpenClassrooms\Bundle\OneSkyBundle\Services\Impl\FileServiceImpl">
<service id="openclassrooms.onesky.model.language_factory" class="OpenClassrooms\Bundle\OneSkyBundle\Model\Impl\LanguageFactoryImpl" public="true"/>
<service id="openclassrooms.onesky.services.file_service" class="OpenClassrooms\Bundle\OneSkyBundle\Services\Impl\FileServiceImpl" public="true">
<call method="setFileGateway">
<argument type="service" id="openclassrooms.onesky.gateways.file"/>
</call>
</service>
<service id="openclassrooms.onesky.services.language_service" class="OpenClassrooms\Bundle\OneSkyBundle\Services\Impl\LanguageServiceImpl">
<service id="openclassrooms.onesky.services.language_service" class="OpenClassrooms\Bundle\OneSkyBundle\Services\Impl\LanguageServiceImpl" public="true">
<call method="setLanguageGateway">
<argument type="service" id="openclassrooms.onesky.gateways.language"/>
</call>
<call method="setRequestedLocales">
<argument>%openclassrooms_onesky.locales%</argument>
</call>
</service>
<service id="openclassrooms.onesky.services.translation_service" class="OpenClassrooms\Bundle\OneSkyBundle\Services\Impl\TranslationServiceImpl">
<service id="openclassrooms.onesky.services.translation_service" class="OpenClassrooms\Bundle\OneSkyBundle\Services\Impl\TranslationServiceImpl" public="true">
<call method="setEventDispatcher">
<argument type="service" id="openclassrooms.onesky.event_dispatcher"/>
</call>
Expand All @@ -82,5 +82,17 @@
<argument type="string">%openclassrooms_onesky.source_locale%</argument>
</call>
</service>
<service id="OpenClassrooms\Bundle\OneSkyBundle\Command\CheckTranslationProgressCommand" public="true">
<tag name="console.command" />
</service>
<service id="OpenClassrooms\Bundle\OneSkyBundle\Command\PullCommand" public="true">
<tag name="console.command" />
</service>
<service id="OpenClassrooms\Bundle\OneSkyBundle\Command\PushCommand" public="true">
<tag name="console.command" />
</service>
<service id="OpenClassrooms\Bundle\OneSkyBundle\Command\UpdateCommand" public="true">
<tag name="console.command" />
</service>
</services>
</container>
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
},
"require": {
"onesky/api-library-php5": "1.*",
"symfony/dependency-injection": ">=2.7 <4",
"symfony/console": ">=2.7 <4",
"symfony/config": ">=2.7 <4",
"symfony/finder": ">=2.7 <4",
"symfony/framework-bundle": ">=2.7 <4",
"symfony/http-kernel": ">=2.7 <4"
"symfony/dependency-injection": "~2.7|~3.0|~4.0",
"symfony/console": "~2.7|~3.0|~4.0",
"symfony/config": "~2.7|~3.0|~4.0",
"symfony/finder": "~2.7|~3.0|~4.0",
"symfony/framework-bundle": "~2.7|~3.0|~4.0",
"symfony/http-kernel": "~2.7|~3.0|~4.0"
},
"require-dev": {
"fabpot/php-cs-fixer": "1.*",
Expand Down
Loading

0 comments on commit 5925c8b

Please sign in to comment.