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
protected function execute(InputInterface $input, OutputInterface $output) | |
{ | |
$fixtureDir = \APPLICATION_PATH . '/' . $input->getArgument('dir'); | |
if (!\is_dir($fixtureDir)) { | |
throw new \Exception('The fixture dir `'.$fixtureDir.'` is not exist.'); | |
} | |
$loader = new Loader(); | |
$loader->loadFromDirectory($fixtureDir); |
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
#! /bin/bash | |
vncserver -kill :1 | |
vncserver | |
DISPLAY=:1 selenium-server-standalone-2.0rc2.jar |
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 | |
/** | |
* Unserializes the user. | |
* | |
* @param string $serialized | |
*/ | |
public function unserialize($serialized) | |
{ | |
list( |
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 | |
/** | |
* @see Symfony\Component\Security\Core\Encoder\EncoderFactory::getEncoder() | |
*/ | |
public function getEncoder(SecurityUserInterface $user) | |
{ | |
if (!$user instanceof UserInterface) { | |
return $this->genericFactory->getEncoder($user); | |
} |
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 | |
// Repository | |
namespace Rj\BlogBundle\Entity; | |
use Pagerfanta\Pagerfanta; | |
use Pagerfanta\Adapter\DoctrineORMAdapter; | |
/** |
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 ArticleAdmin extends DoctrineORMAdmin | |
{ | |
protected function configure() | |
{ | |
// this clouse will be called | |
$batchActions['approve'] = function($selected, $container, $batchAction) { | |
var_dump($selected); | |
}; |
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 Rj\CoreBundle\Enum; | |
abstract class Enum | |
{ | |
/** | |
* | |
* @var array | |
*/ |
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 | |
// Controller | |
namespace Rj\EmployerBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
class AdWizardController extends Controller | |
{ |
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
parameters: | |
services: | |
rj.employer.ad.wizard: | |
class: Rj\EmployerBundle\AdWizard\AdWizard | |
scope: request | |
calls: | |
- [addStep, [@rj.employer.ad.wizard.choosePass]] | |
- [addStep, [@rj.employer.ad.wizard.employerProfile]] |
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 Rj\Employer\AdWizard\Step; | |
abstract class BaseStep | |
{ | |
abstract public function process(); | |
abstract public function finished(); |
OlderNewer