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
@echo off | |
if "%PHPBIN%" == "" set PHPBIN=C:\path\to\PHP\executable\dir\.\php.exe | |
"%PHPBIN%" "C:\path\to\composer.phar" %* |
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 DoctrineExtensions\PHPUnit\OrmTestCase, | |
Doctrine\ORM\Configuration, | |
Doctrine\Common\Cache\ArrayCache, | |
Doctrine\ORM\EntityManager; | |
/** | |
* Base class for test cases that need an entity manager to work with. | |
* Defines an entity manager for the tests to work with and truncates tables in a way that is compatible with MySQL | |
* @author Jeremy Cook | |
* @version 1.0 | |
*/ |
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 Tests\Models\Db; | |
use DoctrineExtensions\PHPUnit\OrmTestCase, | |
Doctrine\ORM\Configuration, | |
Doctrine\Common\Cache\ArrayCache, | |
Doctrine\ORM\EntityManager, | |
Doctrine\DBAL\Types\Type, | |
Doctrine\Spatial\ORM\SchemaEventSubscriber, | |
Doctrine\Common\EventManager, | |
PHPUnit_Extensions_Database_Operation_Composite, |
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 foo { | |
public $bar; | |
public function __construct(Closure $closure) | |
{ | |
$this->bar = Closure::bind($closure, $this); | |
} | |
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
#################################################################################### | |
## ## | |
## gittyup() - Easily keep master in sync with upstream. ## | |
## ## | |
## Author: Evan Coury, http://blog.evan.pro/ ## | |
## URL: https://gist.github.com/1506822 ## | |
## ## | |
## This bash function is a simple shortcut for keeping your local (and public ## | |
## fork / origin remote) master branch up to date and in sync with the upstream ## | |
## master. To use gittyup(), simply drop this in your ~/.bashrc. ## |
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 "vendor/autoload.php"; | |
use Monolog\Logger; | |
use Monolog\Handler\GelfHandler; | |
use Gelf\MessagePublisher; | |
$log = new Logger('Test'); | |
$log->pushHandler(new GelfHandler(new MessagePublisher('IP OR DOMAIN NAME OF YOUR GRAYLOG2 SERVER'))); |
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 Monolog\Logger; | |
use Monolog\Handler\GelfHandler; | |
use Gelf\MessagePublisher; | |
/** | |
* Class to configure and return a Monolog instance | |
* | |
* @author Jeremy Cook | |
*/ |
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 | |
/** | |
* This file sets up exception and error handlers to log errors to our Graylog2 | |
* server. | |
* | |
* @author Jeremy Cook | |
*/ | |
//Add the autoloader generated by composer for dependencies. | |
require_once 'path/to/composer/autoload.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
# Deployment server info | |
set :application, "APP NAME" | |
set :domain, "APP DOMAIN NAME" | |
set :deploy_to, "/path/on/live/server" | |
set :app_path, "app" | |
set :web_path, "web" | |
set :maintenance_basename, "maintenance" | |
# SCM info | |
set :repository, "GIT REMOTE REPO URL" |
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
set path+=/path/to/project/src/** | |
set path+=/path/to/project/vendor/** |
OlderNewer