From 6414f6be0a3ca93c9e91ea26f7aa0e1a1a04f22d Mon Sep 17 00:00:00 2001 From: Matthieu Bontemps Date: Sun, 3 Jul 2011 11:28:55 +0200 Subject: [PATCH] Change Knplabs to Knp. BC break before Symfony2 release. --- DependencyInjection/Configuration.php | 4 ++-- ...absMarkdownExtension.php => KnpMarkdownExtension.php} | 6 +++--- Helper/MarkdownHelper.php | 4 ++-- KnpMarkdownBundle.php | 9 +++++++++ KnplabsMarkdownBundle.php | 9 --------- MarkdownParserInterface.php | 2 +- Parser/MarkdownParser.php | 4 ++-- Parser/Preset/Light.php | 4 ++-- Parser/Preset/Max.php | 4 ++-- Parser/Preset/Medium.php | 4 ++-- Parser/Preset/Min.php | 4 ++-- README.markdown | 8 ++++---- Resources/config/helper.xml | 2 +- Resources/config/parser.xml | 8 ++++---- Resources/config/twig.xml | 2 +- Tests/EscapingTest.php | 4 ++-- Tests/FeatureTest.php | 4 ++-- Tests/Performance/Base.php | 4 ++-- Tests/Performance/Light.php | 4 ++-- Tests/Performance/Max.php | 4 ++-- Tests/Performance/Medium.php | 4 ++-- Tests/Performance/Min.php | 4 ++-- Tests/Performance/index.php | 2 +- Tests/PresetTest.php | 6 +++--- Tests/bootstrap.php | 2 +- Twig/Extension/MarkdownTwigExtension.php | 4 ++-- 26 files changed, 58 insertions(+), 58 deletions(-) rename DependencyInjection/{KnplabsMarkdownExtension.php => KnpMarkdownExtension.php} (85%) create mode 100644 KnpMarkdownBundle.php delete mode 100644 KnplabsMarkdownBundle.php diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 08da2b3..cc4a7cd 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -1,6 +1,6 @@ root('knplabs_markdown', 'array') + $treeBuilder->root('knp_markdown', 'array') ->addDefaultsIfNotSet() ->children() ->arrayNode('parser') diff --git a/DependencyInjection/KnplabsMarkdownExtension.php b/DependencyInjection/KnpMarkdownExtension.php similarity index 85% rename from DependencyInjection/KnplabsMarkdownExtension.php rename to DependencyInjection/KnpMarkdownExtension.php index 115d47a..6cac0b0 100644 --- a/DependencyInjection/KnplabsMarkdownExtension.php +++ b/DependencyInjection/KnpMarkdownExtension.php @@ -1,6 +1,6 @@ - Knplabs\Bundle\MarkdownBundle\Helper\MarkdownHelper + Knp\Bundle\MarkdownBundle\Helper\MarkdownHelper diff --git a/Resources/config/parser.xml b/Resources/config/parser.xml index 94958a9..1f71c88 100644 --- a/Resources/config/parser.xml +++ b/Resources/config/parser.xml @@ -5,10 +5,10 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> - - - - + + + + diff --git a/Resources/config/twig.xml b/Resources/config/twig.xml index c958ad3..7605640 100644 --- a/Resources/config/twig.xml +++ b/Resources/config/twig.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> - + diff --git a/Tests/EscapingTest.php b/Tests/EscapingTest.php index 9e578dd..d22ac5c 100644 --- a/Tests/EscapingTest.php +++ b/Tests/EscapingTest.php @@ -1,8 +1,8 @@ run(10)); diff --git a/Tests/PresetTest.php b/Tests/PresetTest.php index a3cddfa..20604ba 100644 --- a/Tests/PresetTest.php +++ b/Tests/PresetTest.php @@ -1,10 +1,10 @@ registerNamespace('Knplabs\\Bundle\\MarkdownBundle', __DIR__.'/../../../..'); +$loader->registerNamespace('Knp\\Bundle\\MarkdownBundle', __DIR__.'/../../../..'); $loader->register(); diff --git a/Twig/Extension/MarkdownTwigExtension.php b/Twig/Extension/MarkdownTwigExtension.php index 53976d2..51bd629 100644 --- a/Twig/Extension/MarkdownTwigExtension.php +++ b/Twig/Extension/MarkdownTwigExtension.php @@ -1,8 +1,8 @@