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 | |
error_reporting(E_ALL|E_STRICT); | |
namespace Some\Vendor; | |
class Foo | |
{ | |
public function zim($doom = null) | |
{ | |
} |
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
dave:~/sites/bin $ ./phpmig status | |
PHP Fatal error: Call to a member function schema() on boolean in /Users/davidheward/sites/vendor/davedevelopment/phpmig/src/Phpmig/Adapter/Illuminate/Database.php on line 89 | |
Fatal error: Call to a member function schema() on boolean in /Users/davidheward/sites/vendor/davedevelopment/phpmig/src/Phpmig/Adapter/Illuminate/Database.php on line 89 |
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
input { | |
syslog { | |
type => syslog | |
port => 514 | |
} | |
} | |
output { | |
stdout { | |
codec => rubydebug |
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
$app->register( | |
new Silex\Provider\SwiftmailerServiceProvider(), | |
array( | |
'swiftmailer.options' => array( | |
'sender_address' => $sender, | |
'transport' => 'smtp', | |
'encryption' => null, | |
'auth_mode' => 'login', | |
'host' => $server, | |
'port' => $port', |
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
Pimple | |
273K | |
2153K | |
0.009068s | |
DependencyInjection | |
275K | |
2903K | |
0.051517s | |
DependencyInjection (dumped) | |
2041K |
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 Demo\Controller; | |
use Silex\ControllerResolver as BaseControllerResolver; | |
use Symfony\Component\HttpFoundation\Request; | |
class ControllerResolver extends BaseControllerResolver | |
{ | |
/** |
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 | |
# Amazing static site generator | |
# Works for PHP and HTML sites | |
# Assumes web root to be in /web | |
# Dumps the site into a directory named "static" | |
# | |
# rm -rf static/*; seq 1 4 | time parallel -j 4 ./build.sh 900{} | |
PORT=${1:-9999} | |
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 | |
// Service Provider | |
$app->register(new Via\Content\ContentServiceProvider()); | |
// Route | |
$app->get('/{id}', function($id) use ($app) { | |
return $app['content.id_checker']->check($id); | |
}); | |
// and in .... ContentServiceProvider |
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 ('PHPUnit/Autoload.php'); | |
class FailingTest extends \PHPUnit_Framework_TestCase | |
{ | |
public function testTestThatWeJustFail() | |
{ | |
$this->assertTrue(true); | |
} |
NewerOlder