This file contains hidden or 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
| /** | |
| * The Application(which is an instance of Pimple) sets up it's required dependencies, one of which is a logger | |
| */ | |
| $this['logger'] = null; | |
| /** snip */ | |
| /** | |
| * The controller resolver takes an optional logger | |
| */ |
This file contains hidden or 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 Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder as SyMessageDigestPasswordEncoder; | |
| /** | |
| * Used to allow for use of existing passwords that were just sha1 in the db, | |
| */ | |
| class Sha1MessageDigestPasswordEncoder extends SyMessageDigestPasswordEncoder | |
| { | |
| public function encodePassword($raw, $salt) |
This file contains hidden or 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
| " Run behat features | |
| function! RunFeature(...) | |
| " Are we in a feature file? | |
| let in_feature_file = match(expand("%"), '.feature$') != -1 | |
| let run_nearest_scenario = a:0 | |
| if in_feature_file | |
| " if so, store the path for later | |
| let t:dm_feature_file=@% |
This file contains hidden or 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/env php | |
| <?php | |
| # bin/routes | |
| $app = require __DIR__ . '/../app/bootstrap.php'; | |
| $routes = $app['routes']->all(); | |
| foreach($routes as $route) { | |
| $cr = new ReflectionFunction($route->getDefault('_controller')); |
This file contains hidden or 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 | |
| perl -pi -e 's/array\(/array\(___CLASSLIST___,\n/' vendor/.composer/autoload_classmap.php | |
| phpab -n -t vendor/.composer/autoload_classmap.php -o vendor/.composer/autoload_classmap.php -b `pwd`/vendor/.composer/ --tolerant vendor/ | |
| perl -pi -e 's/array\(/array\(___CLASSLIST___,\n/' vendor/.composer/autoload_classmap.php | |
| phpab -n -t vendor/.composer/autoload_classmap.php -o vendor/.composer/autoload_classmap.php -b `pwd`/vendor/.composer/ --tolerant src/ | |
| perl -pi -e "s/'\/\.\./\\\$vendorDir.'/" vendor/.composer/autoload_classmap.php |
This file contains hidden or 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 __DIR__.'/vendor/.composer/autoload.php'; | |
| use Silex\Application; | |
| $app = new Application; | |
| $app['debug'] = true; | |
| $app->register(new Silex\Provider\TwigServiceProvider(), array( |
This file contains hidden or 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 __DIR__.'/vendor/.composer/autoload.php'; | |
| use Silex\Application; | |
| $app = new Application; | |
| $app['debug'] = true; | |
| $app->register(new Silex\Provider\TwigServiceProvider(), array( |
This file contains hidden or 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 __DIR__.'/vendor/.composer/autoload.php'; | |
| $app = new Silex\Application(); | |
| $app->register(new Silex\Provider\SessionServiceProvider()); | |
| $app['debug'] = true; | |
| $app->get('/', function() use($app) { |
This file contains hidden or 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 Sismo\Notifier; | |
| use Sismo\Commit; | |
| /** | |
| * A simple audio notifier for Sismo | |
| * | |
| * (c) Dave Marshall <dave.marshall@atstsolutions.co.uk> | |
| * |
This file contains hidden or 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 ('PHPUnit/Autoload.php'); | |
| class FailingTest extends \PHPUnit_Framework_TestCase | |
| { | |
| public function testTestThatWeJustFail() | |
| { | |
| $this->assertTrue(true); | |
| } |