-
Fork Fabiens repository: http://github.com/fabpot/symfony.git
-
Clone your fork and install/update vendors (I use my personal fork for now):
git clone [email protected]:pminnieur/symfony.git symfony
cd symfony && sh install_vendors.sh && sh update_vendors.sh
phpunit
-
Integrate Fabiens repository into your local clone:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<container xmlns="http://www.symfony-project.org/schema/dic/services" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd"> | |
<parameters> | |
<parameter key="views_dir">%root_dir%/views/default</parameter> | |
<parameter key="view.suffix">php</parameter> | |
</parameters> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\MyBundle\Entity; | |
use Doctrine\Common\Collections\ArrayCollection; | |
/** | |
* @orm:Entity(repositoryClass="Application\MyBundle\Entity\UserRepository") | |
* @orm:Table(name="user", | |
* uniqueConstraints={ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // src/Application/GameBundle/DataFixtures/ORM/LoadGameData.php | |
// cd src/vendor && git clone git://github.com/doctrine/data-fixtures doctrine-data-fixtures | |
// register the "Doctrine\Common\DataFixtures" namespace in your src/autoload.php file | |
namespace Application\GameBundle\DataFixtures\ORM; | |
use Doctrine\ORM\EntityManager, | |
Doctrine\Common\DataFixtures\FixtureInterface; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // src/Application/UserBundle/Controller/SecurityController.php | |
namespace Application\UserBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller, | |
Symfony\Component\Security\SecurityContext; | |
class SecurityController extends Controller | |
{ | |
public function loginAction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generating 1.000.000 solar systems (3 iterations). | |
* Chances for a 6 star solar system are fairly small. | |
* Only one solar system with 6 stars out of 3 million. | |
* | |
* #1st | |
* 1 Star : 732724 | |
* 2 Stars: 234559 | |
* 3 Stars: 30955 | |
* 4 Stars: 1728 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rest.config: | |
users: | |
path: /users | |
provider: users | |
properties: [id] | |
methods: [*index, read, *create, update, delete] # methods prefixed with * are property-less | |
formats: [html, json, xml, yaml] | |
providers: | |
users: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body data-version="1.0"> | |
<section role="errors"> | |
<article data-code="404"> | |
Not found |
OlderNewer