Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 655e36d

Browse files
committed
Merge pull request #22 from symfony-cmf/drop_symfony_cmf_prefix
Removed symfony_cmf prefix
2 parents 4c892bf + 95c98b3 commit 655e36d

File tree

14 files changed

+82
-82
lines changed

14 files changed

+82
-82
lines changed

AutoRoute/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function registerMapping($classFqn, $mapping)
4949
/**
5050
* Register an alias for a service ID of the specified type.
5151
*
52-
* e.g. registerAlias('path_provider', 'specified', 'symfony_cmf_[...]');
52+
* e.g. registerAlias('path_provider', 'specified', 'cmf_[...]');
5353
*
5454
* @param string $type
5555
* @param string $alias

SymfonyCmfRoutingAutoBundle.php renamed to CmfRoutingAutoBundle.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\Cmf\Bundle\RoutingAutoBundle\DependencyInjection\Compiler\AutoRoutePass;
88

9-
class SymfonyCmfRoutingAutoBundle extends Bundle
9+
class CmfRoutingAutoBundle extends Bundle
1010
{
1111
public function build(ContainerBuilder $container)
1212
{

Command/RefreshCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public function execute(InputInterface $input, OutputInterface $output)
4545
{
4646
$container = $this->getContainer();
4747
$dm = $container->get('doctrine_phpcr.odm.default_document_manager');
48-
$factory = $container->get('symfony_cmf_routing_auto.factory');
49-
$arm = $container->get('symfony_cmf_routing_auto.auto_route_manager');
48+
$factory = $container->get('cmf_routing_auto.factory');
49+
$arm = $container->get('cmf_routing_auto.auto_route_manager');
5050
$uow = $dm->getUnitOfWork();
5151

5252
$session = $input->getOption('session');

DependencyInjection/SymfonyCmfRoutingAutoExtension.php renamed to DependencyInjection/CmfRoutingAutoExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Symfony\Component\Config\Loader\LoaderInterface;
1111
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
1212

13-
class SymfonyCmfRoutingAutoExtension extends Extension
13+
class CmfRoutingAutoExtension extends Extension
1414
{
1515
/**
1616
* {@inheritDoc}
@@ -27,7 +27,7 @@ public function load(array $configs, ContainerBuilder $container)
2727
$loader->load('route_maker.xml');
2828

2929
$config = $processor->processConfiguration($configuration, $configs);
30-
$chainFactoryDef = $container->getDefinition('symfony_cmf_routing_auto.factory');
30+
$chainFactoryDef = $container->getDefinition('cmf_routing_auto.factory');
3131

3232
// normalize configuration
3333
foreach ($config['auto_route_mapping'] as $classFqn => $config) {

DependencyInjection/Compiler/AutoRoutePass.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ class AutoRoutePass implements CompilerPassInterface
1515
public function process(ContainerBuilder $container)
1616
{
1717
if (!$container->hasDefinition(
18-
'symfony_cmf_routing_auto.factory'
18+
'cmf_routing_auto.factory'
1919
)) {
2020
return;
2121
}
2222

2323
$builderUnitChainFactory = $container->getDefinition(
24-
'symfony_cmf_routing_auto.factory'
24+
'cmf_routing_auto.factory'
2525
);
2626

2727

@@ -33,7 +33,7 @@ public function process(ContainerBuilder $container)
3333
);
3434

3535
foreach ($types as $type) {
36-
$ids = $container->findTaggedServiceIds('symfony_cmf_routing_auto.'.$type);
36+
$ids = $container->findTaggedServiceIds('cmf_routing_auto.'.$type);
3737
foreach ($ids as $id => $attributes) {
3838
if (!isset($attributes[0]['alias'])) {
3939
throw new \InvalidArgumentException(sprintf(

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Configuration implements ConfigurationInterface
1515
public function getConfigTreeBuilder()
1616
{
1717
$treeBuilder = new TreeBuilder();
18-
$treeBuilder->root('symfony_cmf_routing_auto')
18+
$treeBuilder->root('cmf_routing_auto')
1919
->children()
2020
->arrayNode('auto_route_mapping')
2121
->useAttributeAsKey('class')

EventListener/AutoRouteListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protected function getArm()
2222
{
2323
// lazy load the auto_route_manager service to prevent a cirular-reference
2424
// to the document manager.
25-
return $this->container->get('symfony_cmf_routing_auto.auto_route_manager');
25+
return $this->container->get('cmf_routing_auto.auto_route_manager');
2626
}
2727

2828
public function onFlush(OnFlushEventArgs $args)

Resources/config/auto_route.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,46 +5,46 @@
55

66
<parameters>
77

8-
<parameter key="symfony_cmf_routing_auto.phpcrodm_auto_route_listener_class">Symfony\Cmf\Bundle\RoutingAutoBundle\EventListener\AutoRouteListener</parameter>
9-
<parameter key="symfony_cmf_routing_auto.auto_route_manager_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\AutoRouteManager</parameter>
10-
<parameter key="symfony_cmf_routing_auto.factory_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\Factory</parameter>
11-
<parameter key="symfony_cmf_routing_auto.route_stack_builder_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\RouteStack\Builder</parameter>
12-
<parameter key="symfony_cmf_routing_auto.route_patcher_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\RoutePatcher\GenericPatcher</parameter>
8+
<parameter key="cmf_routing_auto.phpcrodm_auto_route_listener_class">Symfony\Cmf\Bundle\RoutingAutoBundle\EventListener\AutoRouteListener</parameter>
9+
<parameter key="cmf_routing_auto.auto_route_manager_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\AutoRouteManager</parameter>
10+
<parameter key="cmf_routing_auto.factory_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\Factory</parameter>
11+
<parameter key="cmf_routing_auto.route_stack_builder_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\RouteStack\Builder</parameter>
12+
<parameter key="cmf_routing_auto.route_patcher_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\RoutePatcher\GenericPatcher</parameter>
1313

1414
</parameters>
1515

1616
<services>
1717
<service
18-
id="symfony_cmf_routing_auto.slugifier"
18+
id="cmf_routing_auto.slugifier"
1919
class="Symfony\Cmf\Bundle\CoreBundle\Slugifier\CallbackSlugifier"
2020
>
2121
<argument>Ferrandini\Urlizer::urlize</argument>
2222
</service>
2323

2424
<service
25-
id="symfony_cmf_routing_auto.auto_route_manager"
25+
id="cmf_routing_auto.auto_route_manager"
2626
class="Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\AutoRouteManager"
2727
>
28-
<argument type="service" id="symfony_cmf_routing_auto.factory"/>
29-
<argument type="service" id="symfony_cmf_routing_auto.route_stack_builder"/>
28+
<argument type="service" id="cmf_routing_auto.factory"/>
29+
<argument type="service" id="cmf_routing_auto.route_stack_builder"/>
3030
</service>
3131

32-
<service id="symfony_cmf_routing_auto.phpcrodm_auto_route_listener" class="%symfony_cmf_routing_auto.phpcrodm_auto_route_listener_class%">
32+
<service id="cmf_routing_auto.phpcrodm_auto_route_listener" class="%cmf_routing_auto.phpcrodm_auto_route_listener_class%">
3333
<argument type="service" id="service_container"/>
3434
<tag name="doctrine_phpcr.event_listener" event="onFlush"/>
3535
</service>
3636

37-
<service id="symfony_cmf_routing_auto.factory" class="%symfony_cmf_routing_auto.factory_class%">
37+
<service id="cmf_routing_auto.factory" class="%cmf_routing_auto.factory_class%">
3838
<argument type="service" id="service_container"/>
39-
<argument type="service" id="symfony_cmf_routing_auto.route_stack_builder"/>
39+
<argument type="service" id="cmf_routing_auto.route_stack_builder"/>
4040

4141
</service>
4242

43-
<service id="symfony_cmf_routing_auto.route_stack_builder" class="%symfony_cmf_routing_auto.route_stack_builder_class%">
43+
<service id="cmf_routing_auto.route_stack_builder" class="%cmf_routing_auto.route_stack_builder_class%">
4444
<argument type="service" id="doctrine_phpcr.odm.default_document_manager"/>
4545
</service>
4646

47-
<service id="symfony_cmf_routing_auto.route_patcher" class="%symfony_cmf_routing_auto.route_patcher_class%">
47+
<service id="cmf_routing_auto.route_patcher" class="%cmf_routing_auto.route_patcher_class%">
4848
<argument type="service" id="doctrine_phpcr.odm.default_document_manager"/>
4949
</service>
5050

Resources/config/exists_action.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@
55

66
<parameters>
77

8-
<parameter key="symfony_cmf_routing_auto.exists_action.use_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\PathExists\UsePath</parameter>
9-
<parameter key="symfony_cmf_routing_auto.exists_action.auto_increment_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\PathExists\AutoIncrementPath</parameter>
8+
<parameter key="cmf_routing_auto.exists_action.use_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\PathExists\UsePath</parameter>
9+
<parameter key="cmf_routing_auto.exists_action.auto_increment_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\PathExists\AutoIncrementPath</parameter>
1010

1111
</parameters>
1212

1313
<services>
1414

1515
<service
16-
id="symfony_cmf_routing_auto.exists_action.use"
17-
class="%symfony_cmf_routing_auto.exists_action.use_class%"
16+
id="cmf_routing_auto.exists_action.use"
17+
class="%cmf_routing_auto.exists_action.use_class%"
1818
scope="prototype"
1919
>
2020
<argument type="service" id="doctrine_phpcr.odm.default_document_manager"/>
21-
<tag name="symfony_cmf_routing_auto.exists_action" alias="use"/>
21+
<tag name="cmf_routing_auto.exists_action" alias="use"/>
2222
</service>
2323

2424
<service
25-
id="symfony_cmf_routing_auto.exists_action.auto_increment"
26-
class="%symfony_cmf_routing_auto.exists_action.auto_increment_class%"
25+
id="cmf_routing_auto.exists_action.auto_increment"
26+
class="%cmf_routing_auto.exists_action.auto_increment_class%"
2727
scope="prototype"
2828
>
2929
<argument type="service" id="doctrine_phpcr.odm.default_document_manager"/>
30-
<argument type="service" id="symfony_cmf_routing_auto.route_maker.default"/>
31-
<tag name="symfony_cmf_routing_auto.exists_action" alias="auto_increment"/>
30+
<argument type="service" id="cmf_routing_auto.route_maker.default"/>
31+
<tag name="cmf_routing_auto.exists_action" alias="auto_increment"/>
3232
</service>
3333

3434
</services>

Resources/config/not_exists_action.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@
55

66
<parameters>
77

8-
<parameter key="symfony_cmf_routing_auto.not_exists_action.throw_exception_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\PathNotExists\ThrowException</parameter>
9-
<parameter key="symfony_cmf_routing_auto.not_exists_action.create_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\PathNotExists\CreatePath</parameter>
8+
<parameter key="cmf_routing_auto.not_exists_action.throw_exception_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\PathNotExists\ThrowException</parameter>
9+
<parameter key="cmf_routing_auto.not_exists_action.create_class">Symfony\Cmf\Bundle\RoutingAutoBundle\AutoRoute\PathNotExists\CreatePath</parameter>
1010
</parameters>
1111

1212
<services>
1313

1414
<service
15-
id="symfony_cmf_routing_auto.not_exists_action.throw_exception"
16-
class="%symfony_cmf_routing_auto.not_exists_action.throw_exception_class%"
15+
id="cmf_routing_auto.not_exists_action.throw_exception"
16+
class="%cmf_routing_auto.not_exists_action.throw_exception_class%"
1717
scope="prototype"
1818
>
19-
<tag name="symfony_cmf_routing_auto.not_exists_action" alias="throw_exception"/>
19+
<tag name="cmf_routing_auto.not_exists_action" alias="throw_exception"/>
2020
</service>
2121

2222
<service
23-
id="symfony_cmf_routing_auto.not_exists_action.create"
24-
class="%symfony_cmf_routing_auto.not_exists_action.create_class%"
23+
id="cmf_routing_auto.not_exists_action.create"
24+
class="%cmf_routing_auto.not_exists_action.create_class%"
2525
scope="prototype"
2626
>
27-
<argument type="service" id="symfony_cmf_routing_auto.route_maker.default"/>
28-
<tag name="symfony_cmf_routing_auto.not_exists_action" alias="create"/>
27+
<argument type="service" id="cmf_routing_auto.route_maker.default"/>
28+
<tag name="cmf_routing_auto.not_exists_action" alias="create"/>
2929
</service>
3030

3131
</services>

0 commit comments

Comments
 (0)