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
diff --git a/src/Aura/Marshal/Entity/GenericEntity.php b/src/Aura/Marshal/Entity/GenericEntity.php | |
index 8e643eb..cc2d82d 100644 | |
--- a/src/Aura/Marshal/Entity/GenericEntity.php | |
+++ b/src/Aura/Marshal/Entity/GenericEntity.php | |
@@ -22,4 +22,29 @@ use Aura\Marshal\Data; | |
class GenericEntity extends Data | |
{ | |
use MagicArrayAccessTrait; | |
+ | |
+ /** |
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 | |
$pdo = new PDO('sqlite::memory:'); | |
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
$pdo->exec('CREATE TABLE foo (bar VARCHAR(20))'); | |
$sth = $pdo->prepare('INSERT INTO foo (bar) VALUES (:bar)'); | |
var_dump($sth); | |
$sth->execute(array('bar' => 'bar')); | |
$sth->execute(array('bar' => null)); |
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 "../autoload.php"; | |
$pdo = new Aura\Sql\ExtendedPdo('sqlite::memory:'); | |
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
$pdo->exec('CREATE TABLE foo (bar VARCHAR(20))'); | |
$stm = 'INSERT INTO foo (bar) VALUES (:bar)'; |
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
[15:42:41] <jcarouth> no view object, no care. | |
[15:42:52] <jcarouth> should have refactored to Smarty | |
[15:42:58] <GrumpyCanuck> Savant | |
[15:43:41] <jcarouth> smarty is just a facade to savant i think | |
[15:44:00] <GrumpyCanuck> I dare you to say that to pmjones' face | |
[15:44:47] <mfrost503> oh snapz | |
[15:44:56] <jcarouth> no, i'll pass. I already did some minor trolling of the sort with him at mwphp | |
[15:44:59] <jcarouth> i got my little joke in | |
[15:46:00] <chasep_work> Savant and Smarty are different... Honestly, I don't see much difference between Savant and just using inline PHP to create templates | |
[15:46:21] <elazar> Basically is, just with predefined structure. ;) |
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
PACKAGE=$1 | |
BASE=`pwd` | |
DIR="${BASE}/Aura.${PACKAGE}" | |
AUTH="${BASE}/Aura.Auth" | |
# change to package dir | |
cd $DIR | |
git pull | |
# fix .gitignore and .travis.yml |
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
<h1> Aura for PHP</h1> | |
<dl> | |
<dt>1. <a href="libraries/">Library Packages</a></dt> | |
<dd><dl> | |
<dt>1.1. <a href="libraries/autoload.html#1.1">Aura.Autoload</a></dt> | |
<dd><dl> | |
<dt>1.1.1. <a href="libraries/autoload.html#1.1.1">Foreword</a></dt> | |
<dd><dl> | |
<dt>1.1.1.1. <a href="libraries/autoload.html#1.1.1.1">Installation</a></dt> | |
<dt>1.1.1.2. <a href="libraries/autoload.html#1.1.1.2">Quality</a></dt> |
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
### This command line session ... | |
$ mkdir phpdoctest | |
$ cd phpdoctest/ | |
$ git clone git@github.com:auraphp/Aura.Dispatcher | |
Cloning into 'Aura.Dispatcher'... | |
remote: Counting objects: 455, done. | |
remote: Total 455 (delta 0), reused 0 (delta 0), pack-reused 455 | |
Receiving objects: 100% (455/455), 85.18 KiB | 0 bytes/s, done. | |
Resolving deltas: 100% (265/265), done. |
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 | |
error_reporting(E_ALL|E_STRICT); | |
class Foo | |
{ | |
public function zim() | |
{ | |
} | |
} | |
class Bar extends Foo |
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 Psr\Http\Message\ServerRequestInterface as Request; | |
use Psr\Http\Message\ResponseInterface as Response; | |
class Dispatcher | |
{ | |
protected $queue; | |
protected $resolver; | |
public function __construct(array $queue, callable $resolver) |
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 MiddlewareQueue | |
{ | |
protected $queue = []; | |
public function add($spec) | |
{ | |
$this->queue[] = $spec; | |
} | |
public function asArray() | |
{ |
OlderNewer