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
$systemLoader = new \Twig_Loader_Filesystem(__DIR__ . '/Resources/templates'); | |
$twig = new \Twig_Environment($systemLoader); | |
$twig->addExtension(new PanadaExtension()); | |
$template = $twig->loadTemplate('index.html'); | |
echo $template->render($_REQUEST); |
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 YourApp; | |
/* | |
* This file is a part of Mozart PHP Small MVC Framework | |
* | |
* (c) Faizal Pribadi <faizal_pribadi@aol.com> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* |
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 | |
/** | |
* Build couple the component of Mozart PHP | |
* Create the custom event and dispatch With Dependency Injection | |
* Simple And Very Interesting | |
*/ | |
/** |
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 Mozart\Library\DependencyInjection; | |
class ContainerBuilderUp | |
{ | |
public function running() | |
{ | |
$format = '(%1$2d = %1$04b) = (%2$2d = %2$04b)' | |
. ' %3$s (%4$2d = %4$04b)' . "\n"; |
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 SemanticalEventInterface | |
{ | |
public function set($eventName); | |
public function get($functionName); | |
} | |
class SemanticalEvent implements SemanticalEventInterface | |
{ | |
private $eventName; |
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
$fileLoader = dirname(dirname(__FILE__)); | |
require $fileLoader . '/autoload.php'; | |
use Mozart\Library\Event\Event; | |
use Mozart\Library\Event\EventDispatcher; | |
class OhMyEventListener | |
{ | |
public function create(Event $event) | |
{ |
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 Mozart\Library\Annotations; | |
/* | |
* This file is a part of Mozart PHP Small MVC Framework | |
* | |
* (C) Faizal Pribadi - Gesture Media Ltd - 2012 | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* |
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; | |
/** | |
* import annotations | |
*/ | |
use Mozart\Library\Annotations as Mozart; | |
/** | |
* @Annotation |
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 Mozart\Library\Console; | |
use Mozart\Library\Console\Console; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\Console\Shell; | |
use Symfony\Component\Console\Command\Command; | |
/** |
NewerOlder