-
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 git@github.com: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
<?php | |
/** | |
* I'd like to use IPC sockets (ipc://foo.ipc) but my virtual machine won't let me ... :) | |
* IPC sockets will be faster than TCP, so this script could run even faster than it does! | |
*/ | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\Console\Input\InputOption; |
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 Turtle\ApiBundle\Serializer\Normalizer; | |
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer, | |
Symfony\Component\Serializer\SerializerInterface; | |
class DateTimeNormalizer extends AbstractNormalizer | |
{ | |
/** |
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 |
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
/** | |
* 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
<?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
<?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; |