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
composer init --require=proem/proem:0.10.0-alpha6 -n && composer install --dev |
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->group(['hostname' => '{username}.domain.com'], function() use ($routes) { | |
$routes->attach('user.home', new Route('/')); | |
$routes->attach('user.edit', new Route('/edit')); | |
}); |
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 \Mockery as m; | |
class ChainEventTest extends \PHPUnit_Framework_TestCase | |
{ | |
public function testCanInstantiate() | |
{ | |
$this->assertInstanceOf('Proem\Filter\ChainEventInterface', m::mock('Proem\Filter\ChainEventInterface')); | |
} | |
public function testInAndOutAreCalledOnInit() |
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
abstract class ChainEventAbstract implements ChainEventInterface | |
{ | |
/** | |
* Define the method to be called on the way into the filter. | |
* | |
* @param Proem\Service\AssetManagerInterface $assets | |
*/ | |
abstract public function in(AssetManagerInterface $assets); | |
/** |
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 foo { | |
public function x(); | |
} | |
interface bar { | |
public function y(); | |
} |
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
#!/bin/bash | |
RESTORE='\033[0m' | |
RED='\033[00;31m' | |
GREEN='\033[00;32m' | |
brew_php_link=$(ls -l /usr/local/bin/php | grep -Eo 'php([0-9]{1,2})') | |
current_php_version=$(php --version | head -n1 | awk '{print $2}') |
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
Portage 2.2.2 (default/linux/amd64/2008.0, gcc-4.4.5, libc-0-r0, 2.6.32-042stab016.1 x86_64) | |
================================================================= | |
System uname: Linux-2.6.32-042stab016.1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.1.8 | |
Portage Tree: /usr/portage | |
Portage HEAD: b1e527493d08bf2a016db6e1df1875fd95008734 /usr/portage/.git/refs/heads/funtoo.org | |
app-shells/bash: 4.1_p10 | |
dev-lang/python: 2.6.6-r1 | |
dev-util/pkgconfig: 0.26 | |
sys-apps/baselayout: 2.1.8-r2 | |
sys-apps/openrc: 0.7.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 | |
(new AutoLoader()) | |
->registerNamespaces([ | |
'Proem' => ['/myproem', 'lib'] | |
]); |
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_once './lib/Proem/Autoloader.php'; | |
use Proem\Autoloader; | |
(new AutoLoader()) | |
->registerNamespace('Proem', './lib') | |
->register(); |
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/lib/Proem/Api/Bootstrap/Service/Asset/Dispatch.php b/lib/Proem/Api/Bootstrap/Service/Asset/Dispatch.php | |
new file mode 100644 | |
index 0000000..5b1c194 | |
--- /dev/null | |
+++ b/lib/Proem/Api/Bootstrap/Service/Asset/Dispatch.php | |
@@ -0,0 +1,49 @@ | |
+<?php | |
+ | |
+/** | |
+ * The MIT License |