WEBVTT

NOTE Created by CaptionSync from Automatic Sync Technologies www.automaticsync.com

00:00:01.006 --> 00:00:03.046 align:middle
Let's commit our progress so far.

00:00:03.396 --> 00:00:08.546 align:middle
I'll clear the screen and
run: git status Interesting:

00:00:08.776 --> 00:00:13.106 align:middle
there are a few new files
here that I didn't create.

00:00:13.646 --> 00:00:17.836 align:middle
Don't worry: we're going to talk about
that exactly in the next chapter.

00:00:18.816 --> 00:00:21.076 align:middle
Add everything with: git add .

00:00:22.106 --> 00:00:23.086 align:middle
Normally...

00:00:23.166 --> 00:00:25.376 align:middle
this command can be dangerous -

00:00:25.506 --> 00:00:29.466 align:middle
we might accidentally add some
files that we don't want to commit!

00:00:31.126 --> 00:00:35.846 align:middle
Fortunately, our project came
with a pre-filled .gitignore file

00:00:36.096 --> 00:00:41.676 align:middle
which ignores the important stuff, like vendor/
and some other paths we'll talk about later.

00:00:41.766 --> 00:00:45.776 align:middle
For example, var/ holds cache and log files.

00:00:46.646 --> 00:00:49.026 align:middle
The point is, Symfony has our back.

00:00:51.346 --> 00:00:59.276 align:middle
Commit with: git commit -m "we are ROCKING
this Symfony thing" You can interact

00:00:59.276 --> 00:01:01.756 align:middle
with your Symfony app in two different ways.

00:01:02.116 --> 00:01:04.526 align:middle
The first is by loading a page in your browser.

00:01:04.896 --> 00:01:09.976 align:middle
The second is with a handy
command-line script called bin/console.

00:01:10.496 --> 00:01:16.006 align:middle
At your terminal, run: php bin/console Woh!

00:01:16.236 --> 00:01:20.236 align:middle
This command lists a bunch of
different things you can do with it,

00:01:20.956 --> 00:01:23.276 align:middle
including a lot of debugging tools.

00:01:24.046 --> 00:01:30.226 align:middle
Now, just to demystify this a little, there
is literally a bin/ directory in our app

00:01:30.526 --> 00:01:32.986 align:middle
with a file called console inside.

00:01:34.106 --> 00:01:39.536 align:middle
So this bin/console thing is not some global
command that got installed on our system:

00:01:39.856 --> 00:01:43.376 align:middle
we are literally executing a physical PHP file.

00:01:45.606 --> 00:01:48.216 align:middle
The bin/console command can do many things -

00:01:48.216 --> 00:01:51.366 align:middle
and we'll discover my favorite
features along the way.

00:01:51.696 --> 00:01:55.346 align:middle
For example, want to see a list
of every route in your app?

00:01:55.986 --> 00:02:01.726 align:middle
Run: php bin/console debug:router Yep!

00:02:01.976 --> 00:02:03.786 align:middle
There are our two routes...

00:02:03.986 --> 00:02:07.846 align:middle
plus another one that Symfony adds
automatically during development.

00:02:09.216 --> 00:02:13.696 align:middle
The bin/console tool already contains
many useful commands like this.

00:02:14.266 --> 00:02:18.456 align:middle
But the list of commands
it supports is not static.

00:02:19.186 --> 00:02:21.576 align:middle
New commands can be added by us...

00:02:22.116 --> 00:02:25.896 align:middle
or by new packages that we
install into our project.

00:02:26.366 --> 00:02:29.316 align:middle
That's my "not-so-subtle" foreshadowing.

00:02:30.446 --> 00:02:36.276 align:middle
Next: let's talk about Symfony Flex,
Composer aliases and the recipes system.

00:02:36.886 --> 00:02:40.786 align:middle
Basically, the tools that
makes Symfony truly unique.

