xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.remote_connect_back=1
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
use Symfony\CS\FixerInterface; | |
use Symfony\CS\Tokens; | |
class ShortArraySyntaxFixer implements FixerInterface | |
{ | |
public function fix(\SplFileInfo $file, $content) | |
{ | |
$tokens = Tokens::fromCode($content); | |
for ($index = 0, $c = $tokens->count(); $index < $c; $index++) { |
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
class FormFieldManager | |
{ | |
/** | |
* Recria fields com rebra de bloqueio. | |
* | |
* @param FormInterface $sourceForm | |
* @param FormInterface $child | |
*/ | |
public function rebuildChild(FormInterface $sourceForm, FormInterface $child) | |
{ |
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 | |
/** | |
* sfValidatorZip validates a zip code. | |
* | |
* @author Brent Shaffer <bshafs@gmail.com> | |
*/ | |
class sfValidatorZip extends sfValidatorRegex | |
{ |
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
rep: | |
pattern: /rep | |
defaults: { _controller: AwareSales:Rep:index } | |
sale_main: | |
pattern: /sale/ | |
defaults: { _controller: AwareSales:Sale:index } | |
sale_new: | |
pattern: /sale/new |
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
in my controller: | |
-------------------- | |
$form = SalesForm::create($this->get('form.context'), 'sale', array('em' => $em)); | |
in my SalesForm: | |
-------------------- | |
class SalesForm extends Form | |
{ |
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 | |
/* | |
* based on FOS\UserBundle\Entity | |
*/ | |
namespace HBK\ScavengerHuntBundle\Entity; | |
use Doctrine\Common\EventSubscriber; | |
use Doctrine\ORM\Events; |
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\Features\Context; | |
use Behat\BehatBundle\Context\BehatContext, | |
Behat\Behat\Exception\PendingException; | |
use Behat\Gherkin\Node\PyStringNode, | |
Behat\Gherkin\Node\TableNode; | |
/** |
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\Features\Context; | |
use Behat\BehatBundle\Context\BehatContext, | |
Behat\Behat\Exception\PendingException; | |
use Behat\Gherkin\Node\PyStringNode, | |
Behat\Gherkin\Node\TableNode; | |
/** |
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 DescribeIndex extends View | |
{ | |
function itRendersTheSelectedVideo() | |
{ | |
$video = \Mockery::mock( | |
'Application_Model_Video', array('getName' => 'Revolution OS')); | |
$output = $this->render('MyBundle:Video:detail.html.twig', array( |
OlderNewer