diff --git a/.gitignore b/.gitignore index 3329706..35273c9 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,7 @@ app/config/parameters.yml # Composer composer.phar -composer.lock \ No newline at end of file +composer.lock + +# Code coverage +coverage/ diff --git a/.travis.yml b/.travis.yml index 32d07f2..e4c51b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,15 +2,16 @@ language: php sudo: false +dist: trusty + cache: directories: - $HOME/.composer/cache/files php: - - 5.5 - - 7.0 - 7.1 - 7.2 + - 7.3 env: - SYMFONY_VERSION=2.3.* @@ -25,32 +26,14 @@ env: - SYMFONY_VERSION=4.0.* - SYMFONY_VERSION=4.1.* - SYMFONY_VERSION=4.2.* + - SYMFONY_VERSION=4.3.* + - SYMFONY_VERSION=4.3.* + - SYMFONY_VERSION=4.4.* + - SYMFONY_VERSION=5.0.* + - SYMFONY_VERSION=5.1.* matrix: fast_finish: true - exclude: - - php: 5.5 - env: SYMFONY_VERSION=4.0.* - - php: 7.0 - env: SYMFONY_VERSION=4.0.* - - php: 5.5 - env: SYMFONY_VERSION=4.1.* - - php: 7.0 - env: SYMFONY_VERSION=4.1.* - - php: 5.5 - env: SYMFONY_VERSION=4.2.* - - php: 7.0 - env: SYMFONY_VERSION=4.2.* - include: - - php: 7.1 - env: SYMFONY_VERSION=4.3.* STABILITY=dev - - php: 7.2 - env: SYMFONY_VERSION=4.3.* STABILITY=dev - allow_failures: - - php: 7.1 - env: SYMFONY_VERSION=4.3.* STABILITY=dev - - php: 7.2 - env: SYMFONY_VERSION=4.3.* STABILITY=dev before_install: - composer self-update diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 87b1794..6cd692b 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -19,7 +19,8 @@ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder('thormeier_breadcrumb'); $rootNode = method_exists(TreeBuilder::class, 'getRootNode') - ? $treeBuilder->getRootNode() : $treeBuilder->root('thormeier_breadcrumb'); + ? $treeBuilder->getRootNode() + : $treeBuilder->root('thormeier_breadcrumb'); $rootNode ->children() diff --git a/DependencyInjection/RoutingLoaderCompilerPass.php b/DependencyInjection/RoutingLoaderCompilerPass.php index b8d8444..70c09a1 100644 --- a/DependencyInjection/RoutingLoaderCompilerPass.php +++ b/DependencyInjection/RoutingLoaderCompilerPass.php @@ -19,8 +19,14 @@ public function process(ContainerBuilder $container) { $routingLoaderDefinition = $container->getDefinition('routing.loader'); - $container->setDefinition('thormeier_breadcrumb.routing.attach_breadcrumb_loader.inner', $routingLoaderDefinition); + $container->setDefinition( + 'thormeier_breadcrumb.routing.attach_breadcrumb_loader.inner', + $routingLoaderDefinition + ); - $container->setAlias('routing.loader', 'thormeier_breadcrumb.routing.attach_breadcrumb_loader')->setPublic(true); + $container->setAlias( + 'routing.loader', + 'thormeier_breadcrumb.routing.attach_breadcrumb_loader' + )->setPublic(true); } } diff --git a/DependencyInjection/ThormeierBreadcrumbExtension.php b/DependencyInjection/ThormeierBreadcrumbExtension.php index 18bda65..6f30abe 100644 --- a/DependencyInjection/ThormeierBreadcrumbExtension.php +++ b/DependencyInjection/ThormeierBreadcrumbExtension.php @@ -8,7 +8,7 @@ use Symfony\Component\DependencyInjection\Loader; /** - * Symfony2 DI extension + * Symfony DI extension * * @codeCoverageIgnore */ diff --git a/README.md b/README.md index bd70bef..27e39e4 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ BreadcrumbBundle ## Introduction This Symfony bundle provides integration of breadcrumbs via route config and rendering in your Twig templates. -This bundle is heavily inspired by the inactive https://github.com/xi-project/xi-bundle-breadcrumbs +This bundle is heavily inspired by the inactive [https://github.com/xi-project/xi-bundle-breadcrumbs](https://github.com/xi-project/xi-bundle-breadcrumbs) -## Installation +## Installation / Getting started ### Step 1: Composer require @@ -35,7 +35,7 @@ Enable the bundle in your config.yml: # config.yml thormeier_breadcrumb: ~ -The template defaults to a very basic one, providing a `