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
| (function(){ | |
| var gists = document.getElementsByTagName('gist'); | |
| function embed(id, file, i, tag) { | |
| window['gist_embed_'+i] = function(gist) { | |
| console.log(gist); | |
| if (!document.getElementById('gist_css_'+id)) { | |
| var css = document.createElement('link'); | |
| css.id = 'gist_css_'+id; | |
| css.rel = 'stylesheet'; | |
| css.href = gist.stylesheet; |
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 | |
| namespace App\Action; | |
| use Psr\Http\Message\ServerRequestInterface as Request; | |
| use Psr\Http\Message\ResponseInterface as Response; | |
| use Reactre\Action\AbstractAction as AbstractAction; | |
| class IndexAction extends IndexAction__AopProxied implements \Go\Aop\Proxy | |
| { |
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 | |
| namespace ContentBundle\Entity; | |
| use Doctrine\ORM\Mapping as ORM; | |
| use DateTime; | |
| use DateTimeZone; | |
| /** | |
| * @ORM\Entity |
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 | |
| namespace Application\Action; | |
| use Interop\Container\ContainerInterface; | |
| use Psr\Http\Message\ResponseInterface; | |
| use Psr\Http\Message\ServerRequestInterface; | |
| use Zend\Expressive\Template\TemplateInterface; | |
| use Zend\Stratigility\MiddlewareInterface; |
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 | |
| namespace Pimple; | |
| use Pimple\Container as Pimple; | |
| use Interop\Container\ContainerInterface; | |
| /** | |
| * ContainerInterface wrapper for Pimple 3.0 | |
| */ |
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/php | |
| <?php | |
| $qa = new QualityAssuranceChecks(); | |
| $qa->run(); | |
| /** | |
| * Recommit last commit for testing: | |
| * | |
| * git reset --soft HEAD~1 && git commit -am "Last commit" |
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 | |
| // Delegate static file requests back to the PHP built-in webserver | |
| if (php_sapi_name() === 'cli-server' | |
| && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)) | |
| ) { | |
| return false; | |
| } | |
| chdir(dirname(__DIR__)); |
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 | |
| /** | |
| * Configuration for doctrine cli. | |
| * | |
| * This file is auto detected and used by doctrine cli. | |
| */ | |
| use Doctrine\ORM\Tools\Console\ConsoleRunner; | |
| use Doctrine\ORM\EntityManager; |
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 Zend\Stdlib\ArrayUtils; | |
| use Zend\Stdlib\Glob; | |
| $cachedConfigFile = 'data/cache/app_config.php'; | |
| $configLocations = [ | |
| // Load default config | |
| 'config/autoload/{{,*.}global,{,*.}local}.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
| public static function dumpVersionsClass(Event $composerEvent) | |
| { | |
| $io = $composerEvent->getIO(); | |
| $io->write('<info>Generating version class...</info>'); | |
| $composer = $composerEvent->getComposer(); | |
| // Get root package | |
| $rootPackage = $composer->getPackage(); |