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
public function cleanDatabase() | |
{ | |
$container = $this->kernel->getContainer(); | |
$registry = $container->get('doctrine'); | |
$om = $registry->getManager(); | |
$type = 'ORM'; | |
$executorClass = 'Doctrine\\Common\\DataFixtures\\Executor\\' . $type . 'Executor'; | |
$referenceRepository = new ProxyReferenceRepository($om); |
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 | |
public function onConsoleCommand(ConsoleCommandEvent $event) | |
{ | |
$shardManager = new PoolingShardManager($connection); | |
$shard = $input->getParameterOption(['--shard', '-s']); | |
if ('global' === $shard) { | |
} else { | |
$shardManager->selectGlobal(); | |
$shardManager->selectShard($shard); | |
} |
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 BookingPage extends Page | |
{ | |
public function bookAs($firstName, $lastName, $email) | |
{ | |
$bookingForm = $this->find('css', 'form#booking-form'); | |
$bookingForm->fillField('booking[firstName]', $firstName); | |
$bookingForm->fillField('booking[lastName]', $lastName); | |
$bookingForm->fillField('booking[email]', $email); | |
} | |
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
#!/usr/bin/php | |
<?php | |
/** | |
* .git/hooks/pre-commit | |
* | |
* This pre-commit hooks will check for PHP error (lint), and make sure the code | |
* is PSR compliant. | |
* | |
* Dependecy: PHP-CS-Fixer (https://github.com/fabpot/PHP-CS-Fixer) | |
* |
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 OrteLookupService | |
{ | |
/** | |
* SoapClient | |
* | |
* @var OrteLookupClient | |
*/ | |
protected $client; | |
/** |
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
.svn |
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 | |
require_once dirname(__FILE__).'/../../../../../plugins/sfSimplePagePlugin/modules/sfSimplePage/lib/BasesfSimplePageActions.class.php'; | |
/** | |
* sfSimplePage actions. | |
* | |
* @package sfSimplePagePlugin | |
* @subpackage sfSimplePage | |
* @author Your name here |
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 | |
/** | |
* Shop | |
* | |
* This class has been auto-generated by the Doctrine ORM Framework | |
* | |
* @subpackage model | |
* @author Your name here | |
* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ |
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 | |
/** | |
* Project form base class. | |
* | |
* @package versace | |
* @subpackage form | |
* @author Your name here | |
* @version SVN: $Id: sfDoctrineFormBaseTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ | |
*/ |
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
//login example1 | |
$browser = new sfTestFunctional(new sfBrowser()); | |
$browser-> | |
get('/yourloginrul')-> | |
click('yourSubmitButton', array('yourLoginFormNameFormat' => array('username' => 'yourUsername', 'password' => 'yourPassword')))-> | |
followRedirect(); | |
//Now you are authenticated | |
//login example2 | |
//More verbose for debug purpose |
OlderNewer