8000 [4.0] Setup & Page Creation updates by weaverryan · Pull Request #8544 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[4.0] Setup & Page Creation updates #8544

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixes thanks to Wouter
  • Loading branch information
weaverryan committed Oct 29, 2017
commit 17d1a108a9b57e4f6a165e5c02fe5692133e88bd
19 changes: 10 additions & 9 deletions page_creation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ routes. First, install the annotations package:

$ composer require annotations

Then, in ``config/routes.yaml``, remove the route we just created and uncomment
Then, in ``config/routes.yaml``, remove the route you just created and uncomment
the annotation route import at the bottom:

.. code-block:: yaml
Expand All @@ -113,8 +113,8 @@ After this one-time setup, you can now add your route directly *above* the contr
.. code-block:: diff

// src/Controller/LuckyController.php
// ...

// ...
+ use Symfony\Component\Routing\Annotation\Route;

+ /**
Expand Down Expand Up @@ -143,23 +143,23 @@ that Flex resolves to ``sensio/framework-extra-bundle``.

Second, after this package was downloaded, Flex executed a *recipe*, which is a
set of automated instructions that tell Symfony how to integrate an external
package. Flex recipes exist for many packages and have the ability to do a lot, like
adding configuration files, creating directories, updating ``.gitignore`` and adding
new config to your ``.env`` file. Flex *automates* the installation of packages so
you can get back to coding.
package. Flex recipes exist for many packages (see `symfony.sh`_) and have the ability
to do a lot, like adding configuration files, creating directories, updating ``.gitignore``
and adding new config to your ``.env`` file. Flex *automates* the installation of
packages so you can get back to coding.

You can learn more about Flex by reading ":doc:`/setup/flex`". But that's not necessary:
Flex works automatically in the background when you add packages.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably the time to link to http://symfony.sh ?


The bin/console Utility
The bin/console Command
-----------------------

Your project already has a powerful debugging tool inside: the ``bin/console`` command.
Try running it:

.. code-block:: terminal

php bin/console
$ php bin/console

You should see a list of commands that can give you debugging information, help generate
code, generate database migrations and a lot more. As you install more packages,
Expand All @@ -169,7 +169,7 @@ To get a list of *all* of the routes in your system, use the ``debug:router`` co

.. code-block:: terminal

php bin/console debug:router
$ php bin/console debug:router

You'll learn about many more commands as you continue!

Expand Down Expand Up @@ -331,3 +331,4 @@ Go Deeper with HTTP & Framework Fundamentals
.. _`Twig`: http://twig.sensiolabs.org
.. _`Composer`: https://getcomposer.org
.. _`Joyful Development with Symfony`: http://knpuniversity.com/screencast/symfony/first-page
.. _`symfony.sh`: https://symfony.sh/
0