diff --git a/source/includes/php-frameworks/symfony/Restaurant.php b/source/includes/php-frameworks/symfony/Restaurant.php index 4de8ea778..593bcf803 100644 --- a/source/includes/php-frameworks/symfony/Restaurant.php +++ b/source/includes/php-frameworks/symfony/Restaurant.php @@ -7,7 +7,6 @@ use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM; -use Doctrine\ODM\MongoDB\Types\Type; #[ODM\Document(collection: 'restaurants')] class Restaurant diff --git a/source/includes/php-frameworks/symfony/index.html.twig b/source/includes/php-frameworks/symfony/index.html.twig index 0f5afbd68..5da8cf206 100644 --- a/source/includes/php-frameworks/symfony/index.html.twig +++ b/source/includes/php-frameworks/symfony/index.html.twig @@ -4,4 +4,4 @@ {% block body %}

Welcome to the Symfony MongoDB Quickstart!

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/source/php-frameworks/symfony.txt b/source/php-frameworks/symfony.txt index 5dea28f2e..6960af3c3 100644 --- a/source/php-frameworks/symfony.txt +++ b/source/php-frameworks/symfony.txt @@ -255,31 +255,6 @@ field is ``'Queens'`` and the ``name`` field contains the string ``'Moon'``. This method then displays the documents at the ``/restaurant/browse/`` route. The ``browse()`` method uses the ``QueryBuilder`` class to construct the query. -Specify Routes -`````````````` - -In the ``config/routes.yaml`` file, add the following routes: - -.. code-block:: yaml - :caption: config/routes.yaml - - # main routes - restaurant_index: - path: / - controller: App\Controller\RestaurantController::index - methods: [GET] - - # browse restaurants - restaurant_browse: - path: /restaurant/browse - controller: App\Controller\RestaurantController::browse - methods: [GET] - -This file sets the following routes in the application: - -- ``restaurant_index [GET]``: landing page -- ``restaurant_browse [GET]``: retrieves and displays specific restaurants - Customize Templates ```````````````````