diff --git a/AndreaSpregaBreadcrumbBundle.php b/AndreaSpregaBreadcrumbBundle.php deleted file mode 100644 index 8ee3ff4..0000000 --- a/AndreaSpregaBreadcrumbBundle.php +++ /dev/null @@ -1,17 +0,0 @@ -get('asprega.breadcrumb.builder'); + $builder = $this->get('slope_it.breadcrumb.builder'); $builder->addItem('home', 'home_route'); $builder->addItem('$entity.property', 'entity_route'); $builder->addItem('cool_stuff'); @@ -77,7 +76,7 @@ public function coolStuffAction() ``` php - - - + - - ./Tests + + tests - - - - . - - ./Resources - ./Tests - ./vendor - - - - diff --git a/phpunit.xml.dist.bak b/phpunit.xml.dist.bak new file mode 100644 index 0000000..4db632f --- /dev/null +++ b/phpunit.xml.dist.bak @@ -0,0 +1,27 @@ + + + + + + + ./Tests + + + + + + . + + ./Resources + ./Tests + ./vendor + + + + + diff --git a/Annotation/Breadcrumb.php b/src/Annotation/Breadcrumb.php similarity index 96% rename from Annotation/Breadcrumb.php rename to src/Annotation/Breadcrumb.php index e162ac3..e482e40 100644 --- a/Annotation/Breadcrumb.php +++ b/src/Annotation/Breadcrumb.php @@ -1,6 +1,6 @@ getRootNode() ->children() ->scalarNode('template')->defaultValue('@AndreaSpregaBreadcrumb/breadcrumb.html.twig')->end() diff --git a/DependencyInjection/AndreaSpregaBreadcrumbExtension.php b/src/DependencyInjection/SlopeItBreadcrumbExtension.php similarity index 70% rename from DependencyInjection/AndreaSpregaBreadcrumbExtension.php rename to src/DependencyInjection/SlopeItBreadcrumbExtension.php index 7921720..961ee30 100644 --- a/DependencyInjection/AndreaSpregaBreadcrumbExtension.php +++ b/src/DependencyInjection/SlopeItBreadcrumbExtension.php @@ -1,23 +1,20 @@ processConfiguration($configuration, $configs); - $container->setParameter('asprega_breadcrumb.template', $config['template']); + $container->setParameter('slope_it_breadcrumb.template', $config['template']); } } diff --git a/EventListener/BreadcrumbListener.php b/src/EventListener/BreadcrumbListener.php similarity index 90% rename from EventListener/BreadcrumbListener.php rename to src/EventListener/BreadcrumbListener.php index b09c90d..d0a29fc 100644 --- a/EventListener/BreadcrumbListener.php +++ b/src/EventListener/BreadcrumbListener.php @@ -1,9 +1,9 @@ [ 'html' ], @@ -60,7 +60,7 @@ public function getFunctions() */ public function getName() { - return 'asprega_breadcrumb'; + return 'slope_it_breadcrumb'; } /** diff --git a/Tests/Annotation/BreadcrumbTest.php b/tests/Annotation/BreadcrumbTest.php similarity index 90% rename from Tests/Annotation/BreadcrumbTest.php rename to tests/Annotation/BreadcrumbTest.php index a7aa7e2..f4f538b 100644 --- a/Tests/Annotation/BreadcrumbTest.php +++ b/tests/Annotation/BreadcrumbTest.php @@ -1,13 +1,13 @@ [ + 'slope_it_breadcrumb' => [ 'template' => 'aTemplate.html.twig' ] ]; @@ -30,6 +30,6 @@ public function test_load_overrideTemplate() $processor = new Processor(); $processedConfig = $processor->processConfiguration(new Configuration(), $config); - $this->assertEquals([ 'template' => 'aTemplate.html.twig' ], $processedConfig); + $this->assertEquals(['template' => 'aTemplate.html.twig'], $processedConfig); } } diff --git a/Tests/EventListener/BreadcrumbListenerTest.php b/tests/EventListener/BreadcrumbListenerTest.php similarity index 79% rename from Tests/EventListener/BreadcrumbListenerTest.php rename to tests/EventListener/BreadcrumbListenerTest.php index 53a4d40..fd1d8be 100644 --- a/Tests/EventListener/BreadcrumbListenerTest.php +++ b/tests/EventListener/BreadcrumbListenerTest.php @@ -1,9 +1,9 @@