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 | |
/** | |
* Logging trait | |
* | |
* @author Dave Marshall <[email protected]> | |
*/ | |
trait Logging | |
{ |
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
# .bashrc | |
export GIT_PS1_SHOWDIRTYSTATE="true"; | |
export GIT_PS1_SHOWSTASHSTATE="true"; | |
export GIT_PS1_SHOWUNTRACKEDFILES="true"; | |
export GIT_PS1_SHOWUPSTREAM="verbose" | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:$(__git_ps1 [%s])\[\033[01;34m\]\W\[\033[00m\]\$ ' |
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
{ | |
"require": { | |
"php": ">=5.3.1", | |
"silex/silex": "*", | |
"symfony/console": "*", | |
"behat/behat": "*" | |
}, | |
"config": { | |
"bin-dir": "bin/" |
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 ('PHPUnit/Autoload.php'); | |
class FailingTest extends \PHPUnit_Framework_TestCase | |
{ | |
public function testTestThatWeJustFail() | |
{ | |
$this->assertTrue(true); | |
} |
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 Sismo\Notifier; | |
use Sismo\Commit; | |
/** | |
* A simple audio notifier for Sismo | |
* | |
* (c) Dave Marshall <[email protected]> | |
* |
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 __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 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 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 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 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')); |
OlderNewer