21.10.2015 Views

1-33

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Symfony2 – Franz Jordán 2011<br />

Beginning Development<br />

Now that you have a fully-functional Symfony2 application, you can begin development! Your<br />

distribution may contain some sample code - check the README.rst file included with the<br />

distribution (open it as a text file) to learn about what sample code was included with your<br />

distribution and how you can remove it later.<br />

If you're new to Symfony, join us in the "Creating Pages in Symfony2", where you'll learn how to<br />

create pages, change configuration, and do everything else you'll need in your new application.<br />

Using Source Control<br />

If you're using a version control system like Git or Subversion, you can setup your version<br />

control system and begin committing your project to it as normal. For Git, this can be done<br />

easily with the following command:<br />

git init<br />

For more information on setting up and using Git, check out the GitHub Bootcamp tutorials.<br />

Ignoring the vendor/ Directory<br />

If you've downloaded the archive without vendors, you can safely ignore the<br />

entire vendors/directory and not commit it to source control. With Git, this is done by creating<br />

and adding the following to a .gitignore file:<br />

vendor/<br />

Now, the vendor directory won't be committed to source control. This is fine (actually, it's great!)<br />

because when someone else clones or checks out the project, he/she can simply run<br />

the phpbin/vendors install script to download all the necessary vendor libraries.<br />

<strong>33</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!