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
Executing step: Check out the repository | |
When directory "my-repo" does not exist | |
And I git clone "git.internal:/opt/git/my-repo" | |
>> Cloning into 'my-repo'... | |
Then change to directory "my-repo" | |
Then execute "pwd" | |
>> /Users/chris/work/picklebuild/my-repo | |
Then git checkout "release" | |
>> Switched to a new branch 'release' | |
>> Branch release set up to track remote branch release from origin. |
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 | |
$routes = $app->getContainer()->get('router')->getRoutes(); | |
$grouped = []; | |
foreach ($routes as $index => $route) { | |
$pattern = $route->getPattern(); | |
preg_match('/\{.+?Id\}/', $pattern, $match); | |
if (isset($match[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 | |
interface Subject | |
{ | |
public function getIdentifier(); | |
public function getCredential(); | |
} | |
interface Enforcer | |
{ |
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 App\Providers; | |
use Blade; | |
use Illuminate\Support\ServiceProvider; | |
class PropAuthBladeServiceProvider extends ServiceProvider | |
{ | |
/** |
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 | |
/** | |
* When using Guzzle with self-signed certs, something recently changed that makes the | |
* previous manual config no longer work...see below | |
*/ | |
// this no longer works | |
$init = array( | |
'curl.CURLOPT_SSL_VERIFYHOST' => false, | |
'curl.CURLOPT_SSL_VERIFYPEER' => false, |
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 | |
$r = new XMLReader(); | |
$r->xml($post); | |
while ($r->read()) { | |
if ($r->nodeType == 10) { | |
$doc = $r->readOuterXML(); | |
// see if we have any entities | |
preg_match_all('#<!ENTITY (.*?)>#ims',$doc,$matches); | |
if (!empty($matches[1])) { |
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 | |
// First, our service provider defining the policies | |
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Psecio\PropAuth\Enforcer; | |
use Psecio\PropAuth\Policy; |
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
[Behat\Behat\Exception\ErrorException] | |
Exception has been thrown in "beforeSuite" hook, defined in FeatureContext::initMinkSessions() | |
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 | |
// autoload_namespace.php generated by Composer | |
$vendorDir = dirname(__DIR__); | |
$baseDir = dirname(dirname($vendorDir)); | |
return array( | |
'Zend\\Validator' => $vendorDir . '/zendframework/zend-validator/php/', | |
'Zend\\Uri' => $vendorDir . '/zendframework/zend-uri/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
{ | |
"require": { | |
"behat/behat": ">=2.2.2", | |
"behat/mink" : ">=1.3.2", | |
"guzzle/guzzle": ">=2.0.1", | |
"fabpot/goutte": "*", | |
"behat/sahi-client": "*", | |
"alexandresalome/php-selenium": "*", | |
"facebook/php-webdriver": "*" | |
}, |