Skip to content

Commit

Permalink
Merge pull request #53 from phansys/class_in_services
Browse files Browse the repository at this point in the history
[3.0] Replaced all *.class service parameters by its real values
  • Loading branch information
armetiz committed May 12, 2015
2 parents 5455ca5 + dc00b77 commit 0397906
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 36 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -9,6 +9,7 @@ classes directly in your code, you should update those references.
* Upped PHP version requirement to 5.5.9
* Added PRS-4 autoloader configuration
* The option `enabled` was removed from configuration
* The `*.class` service parameters were replaced by its real values

## 2.5.0
* Logging is now done to a specific channel (PR #50 @pkruithof)
Expand Down
44 changes: 14 additions & 30 deletions src/Resources/config/commands.xml
Expand Up @@ -3,64 +3,48 @@
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="leezy.pheanstalk.command.abstract.class">Leezy\PheanstalkBundle\Command\AbstractPheanstalkCommand</parameter>
<parameter key="leezy.pheanstalk.command.delete_job.class">Leezy\PheanstalkBundle\Command\DeleteJobCommand</parameter>
<parameter key="leezy.pheanstalk.command.flush_tube.class">Leezy\PheanstalkBundle\Command\FlushTubeCommand</parameter>
<parameter key="leezy.pheanstalk.command.kick.class">Leezy\PheanstalkBundle\Command\KickCommand</parameter>
<parameter key="leezy.pheanstalk.command.kick_job.class">Leezy\PheanstalkBundle\Command\KickJobCommand</parameter>
<parameter key="leezy.pheanstalk.command.list_tube.class">Leezy\PheanstalkBundle\Command\ListTubeCommand</parameter>
<parameter key="leezy.pheanstalk.command.next_ready.class">Leezy\PheanstalkBundle\Command\NextReadyCommand</parameter>
<parameter key="leezy.pheanstalk.command.pause_tube.class">Leezy\PheanstalkBundle\Command\PauseTubeCommand</parameter>
<parameter key="leezy.pheanstalk.command.peek.class">Leezy\PheanstalkBundle\Command\PeekCommand</parameter>
<parameter key="leezy.pheanstalk.command.peek_tube.class">Leezy\PheanstalkBundle\Command\PeekTubeCommand</parameter>
<parameter key="leezy.pheanstalk.command.put.class">Leezy\PheanstalkBundle\Command\PutCommand</parameter>
<parameter key="leezy.pheanstalk.command.stats.class">Leezy\PheanstalkBundle\Command\StatsCommand</parameter>
<parameter key="leezy.pheanstalk.command.stats_job.class">Leezy\PheanstalkBundle\Command\StatsJobCommand</parameter>
<parameter key="leezy.pheanstalk.command.stats_tube.class">Leezy\PheanstalkBundle\Command\StatsTubeCommand</parameter>
</parameters>

<services>
<service id="leezy.pheanstalk.command.abstract" class="%leezy.pheanstalk.command.abstract.class%" abstract="true">
<service id="leezy.pheanstalk.command.abstract" class="Leezy\PheanstalkBundle\Command\AbstractPheanstalkCommand" abstract="true">
<argument type="service" id="leezy.pheanstalk.pheanstalk_locator"/>
</service>
<service id="leezy.pheanstalk.command.delete_job" class="%leezy.pheanstalk.command.delete_job.class%" parent="leezy.pheanstalk.command.abstract">
<service id="leezy.pheanstalk.command.delete_job" class="Leezy\PheanstalkBundle\Command\DeleteJobCommand" parent="leezy.pheanstalk.command.abstract">
<tag name="console.command"/>
</service>
<service id="leezy.pheanstalk.command.flush_tube" class="%leezy.pheanstalk.command.flush_tube.class%" parent="leezy.pheanstalk.command.abstract">
<service id="leezy.pheanstalk.command.flush_tube" class="Leezy\PheanstalkBundle\Command\FlushTubeCommand" parent="leezy.pheanstalk.command.abstract">
<tag name="console.command"/>
</service>
<service id="leezy.pheanstalk.command.kick" class="%leezy.pheanstalk.command.kick.class%" parent="leezy.pheanstalk.command.abstract">
<service id="leezy.pheanstalk.command.kick" class="Leezy\PheanstalkBundle\Command\KickCommand" parent="leezy.pheanstalk.command.abstract">
<tag name="console.command"/>
</service>
<service id="leezy.pheanstalk.command.kick_job" class="%leezy.pheanstalk.command.kick_job.class%" parent="leezy.pheanstalk.command.abstract">
<service id="leezy.pheanstalk.command.kick_job" class="Leezy\PheanstalkBundle\Command\KickJobCommand" parent="leezy.pheanstalk.command.abstract">
<tag name="console.command"/>
</service>
<service id="leezy.pheanstalk.command.list_tube" class="%leezy.pheanstalk.command.list_tube.class%" parent="leezy.pheanstalk.command.abstract">
<service id="leezy.pheanstalk.command.list_tube" class="Leezy\PheanstalkBundle\Command\ListTubeCommand" parent="leezy.pheanstalk.command.abstract">
<tag name="console.command"/>
</service>
<service id="leezy.pheanstalk.command.next_ready" class="%leezy.pheanstalk.command.next_ready.class%" parent="leezy.pheanstalk.command.abstract">
<service id="leezy.pheanstalk.command.next_ready" class="Leezy\PheanstalkBundle\Command\NextReadyCommand" parent="leezy.pheanstalk.command.abstract">
<tag name="console.command"/>
</service>
<service id="leezy.pheanstalk.command.pause_tube" class="%leezy.pheanstalk.command.pause_tube.class%" parent="leezy.pheanstalk.command.abstract">
<service id="leezy.pheanstalk.command.pause_tube" class="Leezy\PheanstalkBundle\Command\PauseTubeCommand" parent="leezy.pheanstalk.command.abstract">
<tag name="console.command"/>
</service>
<service id="leezy.pheanstalk.command.peek" class="%leezy.pheanstalk.command.peek.class%" parent="leezy.pheanstalk.command.abstract">
<service id="leezy.pheanstalk.command.peek" class="Leezy\PheanstalkBundle\Command\PeekCommand" parent="leezy.pheanstalk.command.abstract">
<tag name="console.command"/>
</service>
<service id="leezy.pheanstalk.command.peek_tube" class="%leezy.pheanstalk.command.peek_tube.class%" parent="leezy.pheanstalk.command.abstract">
<service id="leezy.pheanstalk.command.peek_tube" class="Leezy\PheanstalkBundle\Command\PeekTubeCommand" parent="leezy.pheanstalk.command.abstract">
<tag name="console.command"/>
</service>
<service id="leezy.pheanstalk.command.put" class="%leezy.pheanstalk.command.put.class%" parent="leezy.pheanstalk.command.abstract">
<service id="leezy.pheanstalk.command.put" class="Leezy\PheanstalkBundle\Command\PutCommand" parent="leezy.pheanstalk.command.abstract">
<tag name="console.command"/>
</service>
<service id="leezy.pheanstalk.command.stats" class="%leezy.pheanstalk.command.stats.class%" parent="leezy.pheanstalk.command.abstract">
<service id="leezy.pheanstalk.command.stats" class="Leezy\PheanstalkBundle\Command\StatsCommand" parent="leezy.pheanstalk.command.abstract">
<tag name="console.command"/>
</service>
<service id="leezy.pheanstalk.command.stats_job" class="%leezy.pheanstalk.command.stats_job.class%" parent="leezy.pheanstalk.command.abstract">
<service id="leezy.pheanstalk.command.stats_job" class="Leezy\PheanstalkBundle\Command\StatsJobCommand" parent="leezy.pheanstalk.command.abstract">
<tag name="console.command"/>
</service>
<service id="leezy.pheanstalk.command.stats_tube" class="%leezy.pheanstalk.command.stats_tube.class%" parent="leezy.pheanstalk.command.abstract">
<service id="leezy.pheanstalk.command.stats_tube" class="Leezy\PheanstalkBundle\Command\StatsTubeCommand" parent="leezy.pheanstalk.command.abstract">
<tag name="console.command"/>
</service>
</services>
Expand Down
8 changes: 2 additions & 6 deletions src/Resources/config/services.xml
Expand Up @@ -3,21 +3,17 @@
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="leezy.pheanstalk.proxy.class">Leezy\PheanstalkBundle\Proxy\PheanstalkProxy</parameter>
<parameter key="leezy.pheanstalk.listener.log.class">Leezy\PheanstalkBundle\Listener\PheanstalkLogListener</parameter>
</parameters>

<services>
<!-- proxy -->
<service id="leezy.pheanstalk.proxy.default" class="%leezy.pheanstalk.proxy.class%">
<service id="leezy.pheanstalk.proxy.default" class="Leezy\PheanstalkBundle\Proxy\PheanstalkProxy">
<call method="setDispatcher">
<argument type="service" id="event_dispatcher" on-invalid="ignore"/>
</call>
</service>

<!-- listener -->
<service id="leezy.pheanstalk.listener.log" class="%leezy.pheanstalk.listener.log.class%">
<service id="leezy.pheanstalk.listener.log" class="Leezy\PheanstalkBundle\Listener\PheanstalkLogListener">
<call method="setLogger">
<argument type="service" id="logger" on-invalid="ignore"/>
</call>
Expand Down

0 comments on commit 0397906

Please sign in to comment.