From 16d21c19351ea88560b770200278a9c8390deb58 Mon Sep 17 00:00:00 2001 From: Gawain Lynch Date: Tue, 28 Nov 2017 17:39:34 +0100 Subject: [PATCH] Change "Symfony2" references --- README.markdown | 10 +++++----- doc/01-Basic-Menus.markdown | 4 ++-- doc/05-Matcher.md | 2 +- src/Knp/Menu/Integration/Symfony/RoutingExtension.php | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.markdown b/README.markdown index 375bf315..3d0a4749 100644 --- a/README.markdown +++ b/README.markdown @@ -2,7 +2,7 @@ KnpMenu ======= The KnpMenu library provides object oriented menus for PHP 5.3. -It is used by the [KnpMenuBundle](https://github.com/KnpLabs/KnpMenuBundle) for Symfony2 +It is used by the [KnpMenuBundle](https://github.com/KnpLabs/KnpMenuBundle) for Symfony but can now be used stand-alone. [![Build Status](https://secure.travis-ci.org/KnpLabs/KnpMenu.svg)](http://travis-ci.org/KnpLabs/KnpMenu) @@ -38,8 +38,8 @@ $factory = new MenuFactory(); $menu = $factory->createItem('My menu'); $menu->addChild('Home', array('uri' => '/')); $menu->addChild('Comments', array('uri' => '#comments')); -$menu->addChild('Symfony2', array('uri' => 'http://symfony-reloaded.org/')); -$menu->addChild('Coming soon'); +$menu->addChild('Symfony', array('uri' => 'http://symfony.com/')); +$menu->addChild('Happy Awesome Developers'); $renderer = new ListRenderer(new \Knp\Menu\Matcher\Matcher()); echo $renderer->render($menu); @@ -56,10 +56,10 @@ The above menu would render the following HTML: Comments
  • - Symfony2 + Symfony
  • - Coming soon + Happy Awesome Developers
  • ``` diff --git a/doc/01-Basic-Menus.markdown b/doc/01-Basic-Menus.markdown index c697344d..080769c6 100644 --- a/doc/01-Basic-Menus.markdown +++ b/doc/01-Basic-Menus.markdown @@ -29,7 +29,7 @@ $factory = new MenuFactory(); $menu = $factory->createItem('My menu'); $menu->addChild('Home', array('uri' => '/')); $menu->addChild('Comments', array('uri' => '#comments')); -$menu->addChild('Symfony2', array('uri' => 'http://symfony-reloaded.org/')); +$menu->addChild('Symfony', array('uri' => 'http://symfony.com/')); $renderer = new ListRenderer(new Matcher()); echo $renderer->render($menu); @@ -46,7 +46,7 @@ The above would render the following html code: Comments
  • - Symfony2 + Symfony
  • ``` diff --git a/doc/05-Matcher.md b/doc/05-Matcher.md index 3a5112f4..53b2328c 100644 --- a/doc/05-Matcher.md +++ b/doc/05-Matcher.md @@ -32,7 +32,7 @@ Available voters KnpMenu provides some voters for standard cases: * `RegexVoter`: checks if the request matches a regular expression you pass to the voter -* `RouteVoter`: uses a Symfony2 request to check if the current route is same as the route of the menu item +* `RouteVoter`: uses a Symfony request to check if the current route is same as the route of the menu item * `UriVoter`: compare the URI of the menu item with the URI passed to the voter Create your own voters diff --git a/src/Knp/Menu/Integration/Symfony/RoutingExtension.php b/src/Knp/Menu/Integration/Symfony/RoutingExtension.php index efdc6424..fffca39b 100644 --- a/src/Knp/Menu/Integration/Symfony/RoutingExtension.php +++ b/src/Knp/Menu/Integration/Symfony/RoutingExtension.php @@ -7,7 +7,7 @@ use Symfony\Component\Routing\Generator\UrlGeneratorInterface; /** - * Factory able to use the Symfony2 Routing component to build the url + * Factory able to use the Symfony Routing component to build the url */ class RoutingExtension implements ExtensionInterface {