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 Acme\DemoBundle\Repository; | |
use Acme\DemoBundle\Dependency; | |
use Doctrine\ORM\EntityRepository; | |
/** | |
* Get this repository directly from the container: it will set the $dependency attribute. | |
* If you get it using Doctrine's "getRepository()", don't forget to call setDependency(). |
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 Gnugat\StackRollback; | |
use Doctrine\DBAL\Connection; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpKernel\HttpKernelInterface; | |
/** | |
* Example: |
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 | |
class Command | |
{ | |
/** | |
* Takes input's parameters to create an output (with a status code). | |
* | |
* @param InputInterface $input | |
* | |
* @return OutputInterface |
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
Some parameters are missing. Please provide them. | |
extensions ({ Behat\Symfony2Extension\Extension: { mink_driver: true }, Behat\MinkExtension\Extension: { base_url: 'http://motivation-application.local/', default_session: symfony2 } }): ^Ĉ |
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
# Compiled file | |
a.out |
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 | |
use Assert\Assertion; | |
class RegisterNewMember | |
{ | |
public $email; | |
public $subscribeToNewsletter = true; | |
public function __construct($email, $subscribeToNewsletter = null) |
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 | |
// File: app/config/importer.php | |
use Symfony\Component\Finder\Finder; | |
$finder = new Finder(); | |
$files = $finder->files()->name('*.yml')->in(__DIR__.'/services')->in(__DIR__.'/vendors'); | |
foreach ($files as $file) { | |
$loader->import($file->getRealpath()); | |
} |
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 | |
if (!isset($argv[1])) { | |
die('Usage: '.$argv[0].' <path>'); | |
} | |
$path = $argv[1]; | |
$fqcns = array(); | |
$allFiles = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)); |
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 Gnugat\Ripozi\Service; | |
class HttpHeader | |
{ | |
const AUTHORIZATION_HEADER = 'Authorization'; | |
const CONTENT_TYPE = 'Content-Type'; | |
const FORM_CONTENT_TYPE = 'application/x-www-form-urlencoded'; |
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 Gnugat\Ripozi\Test; | |
use Symfony\Bundle\FrameworkBundle\Console\Application; | |
use Symfony\Component\Console\Input\ArrayInput; | |
use Symfony\Component\Console\Output\NullOutput; | |
/** | |
* Assumes that the application kernel is named AppKernel and has been loaded |
NewerOlder