diff --git a/components/intl.rst b/components/intl.rst index bbd311f3562..90ac1808f13 100644 --- a/components/intl.rst +++ b/components/intl.rst @@ -22,8 +22,8 @@ Installation You can install the component in two different ways: -* Using the official Git repository (https://github.com/symfony/Intl); -* :doc:`Install it via Composer` (``symfony/intl`` on `Packagist`_). +* :doc:`Install it via Composer` (``symfony/intl`` on `Packagist`_); +* Using the official Git repository (https://github.com/symfony/Intl). If you install the component via Composer, the following classes and functions of the intl extension will be automatically provided if the intl extension is diff --git a/components/routing/introduction.rst b/components/routing/introduction.rst index 85bcd1065de..07c764d5b73 100644 --- a/components/routing/introduction.rst +++ b/components/routing/introduction.rst @@ -288,7 +288,7 @@ calls a closure and uses the result as a :class:`Symfony\\Component\\Routing\\Ro use Symfony\Component\Routing\Loader\ClosureLoader; - $closure = function() { + $closure = function () { return new RouteCollection(); }; @@ -307,7 +307,7 @@ out here. The all-in-one Router ~~~~~~~~~~~~~~~~~~~~~ -The :class:`Symfony\\Component\\Routing\\Router` class is a all-in-one package +The :class:`Symfony\\Component\\Routing\\Router` class is an all-in-one package to quickly use the Routing component. The constructor expects a loader instance, a path to the main route definition and some other settings::