Skip to content

Commit f26a972

Browse files
authored
Merge pull request #9 from PyRowMan/feature/3
Rename LeezyPheanstalkBundle in PheanstalkBundle
2 parents abc735e + 96f664e commit f26a972

File tree

10 files changed

+85
-85
lines changed

10 files changed

+85
-85
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "pyrowman/pheanstalk-bundle",
3-
"description": "The LeezyPheanstalkBundle is a Symfony2 Bundle that provides a command line interface for manage the evqueue workqueue server & a pheanstalk integration.",
3+
"description": "The PheanstalkBundle is a Symfony2 Bundle that provides a command line interface for manage the evqueue workqueue server & a pheanstalk integration.",
44
"keywords": ["symfony", "evqueue", "bundle", "pheanstalk", "queueing", "messaging", "asynchronous"],
55
"type": "symfony-bundle",
6-
"homepage": "https://github.com/armetiz/LeezyPheanstalkBundle",
6+
"homepage": "https://github.com/PyRowMan/pheanstalk-bundle",
77
"license": "MIT",
88
"authors": [
99
{

src/DataCollector/PheanstalkDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
1313

1414
/**
15-
* This is the data collector for LeezyPheanstalkBundle.
15+
* This is the data collector for PheanstalkBundle.
1616
*
1717
* @see http://symfony.com/doc/current/cookbook/profiler/data_collector.html
1818
*

src/DependencyInjection/Compiler/ProxyCompilerPass.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected function reservedName()
4444
*/
4545
public function process(ContainerBuilder $container)
4646
{
47-
$pheanstalks = $container->getParameter('pyrowman.pheanstalk.pheanstalks');
47+
$pheanstalks = $container->getParameter('pheanstalk.pheanstalks');
4848

4949
// For each connection in the configuration file
5050
foreach ($pheanstalks as $name => $pheanstalk) {
@@ -61,7 +61,7 @@ public function process(ContainerBuilder $container)
6161
*/
6262
protected function addServer($name, array $pheanstalk, ContainerBuilder $container)
6363
{
64-
$pheanstalkLocatorDef = $container->getDefinition('pyrowman.pheanstalk.pheanstalk_locator');
64+
$pheanstalkLocatorDef = $container->getDefinition('pheanstalk.pheanstalk_locator');
6565
if (in_array($name, $this->reservedName())) {
6666
throw new \RuntimeException('Reserved pheanstalk name: ' . $name);
6767
}
@@ -82,12 +82,12 @@ protected function addServer($name, array $pheanstalk, ContainerBuilder $contain
8282
$pheanstalkDef->addMethodCall('setName', [$name]);
8383
$pheanstalkDef->setPublic(true);
8484

85-
$container->setDefinition('pyrowman.pheanstalk.' . $name, $pheanstalkDef);
85+
$container->setDefinition('pheanstalk.' . $name, $pheanstalkDef);
8686

8787
// Register the connection in the connection locator
8888
$pheanstalkLocatorDef->addMethodCall('addPheanstalk', [
8989
$name,
90-
$container->getDefinition('pyrowman.pheanstalk.' . $name),
90+
$container->getDefinition('pheanstalk.' . $name),
9191
$isDefault,
9292
]);
9393

@@ -109,10 +109,10 @@ protected function autowireDefaultConfig($name, ContainerBuilder $container)
109109
}
110110

111111
$this->defaultPheanstalkName = $name;
112-
$legacyAlias = $container->setAlias('pyrowman.pheanstalk', 'pyrowman.pheanstalk.' . $name);
112+
$legacyAlias = $container->setAlias('pheanstalk', 'pheanstalk.' . $name);
113113
$legacyAlias->setPublic(true);
114114

115-
$autoWiringAlias = $container->setAlias(PheanstalkInterface::class, 'pyrowman.pheanstalk');
115+
$autoWiringAlias = $container->setAlias(PheanstalkInterface::class, 'pheanstalk');
116116
$autoWiringAlias->setPublic(true);
117117
}
118118
}

src/DependencyInjection/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ class Configuration implements ConfigurationInterface
1717
*/
1818
public function getConfigTreeBuilder()
1919
{
20-
$treeBuilder = new TreeBuilder('leezy_pheanstalk');
20+
$treeBuilder = new TreeBuilder('pheanstalk');
2121
$rootNode = $treeBuilder->getRootNode()->children();
2222

2323
$rootNode
2424
->arrayNode('profiler')
2525
->addDefaultsIfNotSet()
2626
->children()
2727
->scalarNode('enabled')->defaultValue('%kernel.debug%')->end()
28-
->scalarNode('template')->defaultValue('@LeezyPheanstalk/Profiler/pheanstalk.html.twig')->end()
28+
->scalarNode('template')->defaultValue('@Pheanstalk/Profiler/pheanstalk.html.twig')->end()
2929
->end()
3030
->end()
3131
->arrayNode('pheanstalks')
@@ -56,7 +56,7 @@ public function getConfigTreeBuilder()
5656
->end()
5757
->scalarNode('proxy')
5858
->cannotBeEmpty()
59-
->defaultValue('leezy.pheanstalk.proxy.default')
59+
->defaultValue('pheanstalk.proxy.default')
6060
->end()
6161
->end()
6262
->end()

src/DependencyInjection/LeezyPheanstalkExtension.php renamed to src/DependencyInjection/PheanstalkExtension.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
2020
*/
21-
class LeezyPheanstalkExtension extends Extension
21+
class PheanstalkExtension extends Extension
2222
{
2323
/**
2424
* {@inheritDoc}
@@ -56,8 +56,8 @@ private function configureLogListener(ContainerBuilder $container, array $config
5656
$definition->addMethodCall('setLogger', [
5757
new Reference('logger')
5858
]);
59-
$container->setDefinition('pyrowman.pheanstalk.listener.log', $definition)->setPublic(true);
60-
$container->setAlias(PheanstalkLogListener::class, 'pyrowman.pheanstalk.listener.log');
59+
$container->setDefinition('pheanstalk.listener.log', $definition)->setPublic(true);
60+
$container->setAlias(PheanstalkLogListener::class, 'pheanstalk.listener.log');
6161
}
6262
/**
6363
* @param ContainerBuilder $container
@@ -68,9 +68,9 @@ private function configureLocator(ContainerBuilder $container, array $config): v
6868
// Create a connection locator that will reference all existing connection
6969
$connectionLocatorDef = new Definition(PheanstalkLocator::class);
7070
$connectionLocatorDef->setPublic(true);
71-
$container->setDefinition('pyrowman.pheanstalk.pheanstalk_locator', $connectionLocatorDef);
72-
$container->setAlias(PheanstalkLocator::class, 'pyrowman.pheanstalk.pheanstalk_locator');
73-
$container->setParameter('pyrowman.pheanstalk.pheanstalks', $config['pheanstalks']);
71+
$container->setDefinition('pheanstalk.pheanstalk_locator', $connectionLocatorDef);
72+
$container->setAlias(PheanstalkLocator::class, 'pheanstalk.pheanstalk_locator');
73+
$container->setParameter('pheanstalk.pheanstalks', $config['pheanstalks']);
7474
}
7575

7676
/**
@@ -88,8 +88,8 @@ private function configureProfiler(ContainerBuilder $container, array $config):
8888
$dataCollectorDef = new Definition(PheanstalkDataCollector::class);
8989
$dataCollectorDef->setPublic(true);
9090
$dataCollectorDef->addTag('data_collector', ['id' => 'pheanstalk', 'template' => $config['profiler']['template']]);
91-
$dataCollectorDef->addArgument(new Reference('pyrowman.pheanstalk.pheanstalk_locator'));
92-
$container->setDefinition('pyrowman.pheanstalk.data_collector', $dataCollectorDef);
93-
$container->setAlias(PheanstalkDataCollector::class, 'pyrowman.pheanstalk.data_collector');
91+
$dataCollectorDef->addArgument(new Reference('pheanstalk.pheanstalk_locator'));
92+
$container->setDefinition('pheanstalk.data_collector', $dataCollectorDef);
93+
$container->setAlias(PheanstalkDataCollector::class, 'pheanstalk.data_collector');
9494
}
9595
}

src/Event/CommandEvent.php

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,33 @@
77

88
class CommandEvent extends Event
99
{
10-
const DELETE = 'leezy.pheanstalk.event.delete';
11-
const WORKFLOW_EXISTS = 'leezy.pheanstalk.event.workflow_exists';
12-
const WORKFLOW_INSTANCES = 'leezy.pheanstalk.event.workflow_instances';
13-
const WORKFLOW_INSTANCES_DETAILS = 'leezy.pheanstalk.event.workflow_instances_details';
14-
const TASK_EXISTS = 'leezy.pheanstalk.event.task_exists';
15-
const TUBE_EXISTS = 'leezy.pheanstalk.event.tube_exists';
16-
const LIST_TUBES = 'leezy.pheanstalk.event.list_tubes';
17-
const LIST_WORKFLOWS = 'leezy.pheanstalk.event.list_workflows';
18-
const PEEK = 'leezy.pheanstalk.event.peek';
19-
const PEEK_READY = 'leezy.pheanstalk.event.peek_ready';
20-
const PUT = 'leezy.pheanstalk.event.put';
21-
const CANCEL = 'leezy.pheanstalk.event.cancel';
22-
const KILL = 'leezy.pheanstalk.event.kill';
23-
const STATS = 'leezy.pheanstalk.event.stats';
24-
const STATS_TUBE = 'leezy.pheanstalk.event.stats_tube';
25-
const STATS_JOB = 'leezy.pheanstalk.event.stats_job';
26-
const CREATE_WORKFLOW = 'leezy.pheanstalk.event.create_workflow';
27-
const CREATE_SCHEDULE = 'leezy.pheanstalk.event.create_schedule';
28-
const UPDATE_SCHEDULE = 'leezy.pheanstalk.event.create_schedule';
29-
const DELETE_SCHEDULE = 'leezy.pheanstalk.event.delete_schedule';
30-
const LIST_SCHEDULE = 'leezy.pheanstalk.event.list_schedule';
31-
const GET_SCHEDULE = 'leezy.pheanstalk.event.get_schedule';
32-
const UPDATE_WORKFLOW = 'leezy.pheanstalk.event.update_workflow';
33-
const CREATE_WORKFLOW_SCHEDULER = 'leezy.pheanstalk.event.create_workflow_scheduler';
34-
const CREATE_TASK = 'leezy.pheanstalk.event.create_task';
35-
const CREATE_TUBE = 'leezy.pheanstalk.event.create_tube';
36-
const UPDATE_TUBE = 'leezy.pheanstalk.event.update_tube';
10+
const DELETE = 'pheanstalk.event.delete';
11+
const WORKFLOW_EXISTS = 'pheanstalk.event.workflow_exists';
12+
const WORKFLOW_INSTANCES = 'pheanstalk.event.workflow_instances';
13+
const WORKFLOW_INSTANCES_DETAILS = 'pheanstalk.event.workflow_instances_details';
14+
const TASK_EXISTS = 'pheanstalk.event.task_exists';
15+
const TUBE_EXISTS = 'pheanstalk.event.tube_exists';
16+
const LIST_TUBES = 'pheanstalk.event.list_tubes';
17+
const LIST_WORKFLOWS = 'pheanstalk.event.list_workflows';
18+
const PEEK = 'pheanstalk.event.peek';
19+
const PEEK_READY = 'pheanstalk.event.peek_ready';
20+
const PUT = 'pheanstalk.event.put';
21+
const CANCEL = 'pheanstalk.event.cancel';
22+
const KILL = 'pheanstalk.event.kill';
23+
const STATS = 'pheanstalk.event.stats';
24+
const STATS_TUBE = 'pheanstalk.event.stats_tube';
25+
const STATS_JOB = 'pheanstalk.event.stats_job';
26+
const CREATE_WORKFLOW = 'pheanstalk.event.create_workflow';
27+
const CREATE_SCHEDULE = 'pheanstalk.event.create_schedule';
28+
const UPDATE_SCHEDULE = 'pheanstalk.event.create_schedule';
29+
const DELETE_SCHEDULE = 'pheanstalk.event.delete_schedule';
30+
const LIST_SCHEDULE = 'pheanstalk.event.list_schedule';
31+
const GET_SCHEDULE = 'pheanstalk.event.get_schedule';
32+
const UPDATE_WORKFLOW = 'pheanstalk.event.update_workflow';
33+
const CREATE_WORKFLOW_SCHEDULER = 'pheanstalk.event.create_workflow_scheduler';
34+
const CREATE_TASK = 'pheanstalk.event.create_task';
35+
const CREATE_TUBE = 'pheanstalk.event.create_tube';
36+
const UPDATE_TUBE = 'pheanstalk.event.update_tube';
3737

3838
/**
3939
* @var PheanstalkInterface

src/LeezyPheanstalkBundle.php renamed to src/PheanstalkBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Symfony\Component\DependencyInjection\ContainerBuilder;
77
use Symfony\Component\HttpKernel\Bundle\Bundle;
88

9-
class LeezyPheanstalkBundle extends Bundle
9+
class PheanstalkBundle extends Bundle
1010
{
1111
/**
1212
* @inheritdoc

src/Resources/config/commands.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
66

77
<services>
8-
<service id="pyrowman.pheanstalk.command.abstract" class="Pyrowman\PheanstalkBundle\Command\AbstractPheanstalkCommand" abstract="true">
9-
<argument type="service" id="pyrowman.pheanstalk.pheanstalk_locator"/>
8+
<service id="pheanstalk.command.abstract" class="Pyrowman\PheanstalkBundle\Command\AbstractPheanstalkCommand" abstract="true">
9+
<argument type="service" id="pheanstalk.pheanstalk_locator"/>
1010
</service>
11-
<service id="pyrowman.pheanstalk.command.delete_workflow" class="Pyrowman\PheanstalkBundle\Command\DeleteWorkflowCommand" parent="pyrowman.pheanstalk.command.abstract" public="true">
11+
<service id="pheanstalk.command.delete_workflow" class="Pyrowman\PheanstalkBundle\Command\DeleteWorkflowCommand" parent="pheanstalk.command.abstract" public="true">
1212
<tag name="console.command"/>
1313
</service>
1414
</services>

src/Resources/config/services.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<services>
88
<!-- proxy -->
9-
<service id="leezy.pheanstalk.proxy.default" class="Pyrowman\PheanstalkBundle\Proxy\PheanstalkProxy" public="true">
9+
<service id="pheanstalk.proxy.default" class="Pyrowman\PheanstalkBundle\Proxy\PheanstalkProxy" public="true">
1010
<call method="setDispatcher">
1111
<argument type="service" id="event_dispatcher" on-invalid="ignore"/>
1212
</call>

0 commit comments

Comments
 (0)