An extreme minification of Redaktilo.
Usage:
<?php
require_once __DIR__.'/r.php';
# Compiled file | |
a.out |
Some parameters are missing. Please provide them. | |
extensions ({ Behat\Symfony2Extension\Extension: { mink_driver: true }, Behat\MinkExtension\Extension: { base_url: 'http://motivation-application.local/', default_session: symfony2 } }): ^Ĉ |
<?php | |
class Command | |
{ | |
/** | |
* Takes input's parameters to create an output (with a status code). | |
* | |
* @param InputInterface $input | |
* | |
* @return OutputInterface |
<?php | |
namespace Acme\DemoBundle\Repository; | |
use Acme\DemoBundle\Dependency; | |
use Doctrine\ORM\EntityRepository; | |
/** | |
* Get this repository directly from the container: it will set the $dependency attribute. | |
* If you get it using Doctrine's "getRepository()", don't forget to call setDependency(). |
An extreme minification of Redaktilo.
Usage:
<?php
require_once __DIR__.'/r.php';
<?php | |
namespace Gnugat\Ripozi\Test; | |
/** | |
* Assumes that the application kernel is named AppKernel and has been loaded | |
*/ | |
class ApiTestClient | |
{ | |
/** |
<?php | |
namespace Gnugat\Ripozi\EventListener; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpFoundation\JsonResponse; | |
use Symfony\Component\HttpKernel\Event\GetResponseEvent; | |
use Symfony\Component\HttpKernel\HttpKernelInterface; | |
/** |
<?php | |
namespace Gnugat\Ripozi\Test; | |
use Symfony\Bundle\FrameworkBundle\Console\Application; | |
use Symfony\Component\Console\Input\ArrayInput; | |
use Symfony\Component\Console\Output\NullOutput; | |
/** | |
* Assumes that the application kernel is named AppKernel and has been loaded |
<?php | |
namespace Gnugat\Ripozi\Service; | |
class HttpHeader | |
{ | |
const AUTHORIZATION_HEADER = 'Authorization'; | |
const CONTENT_TYPE = 'Content-Type'; | |
const FORM_CONTENT_TYPE = 'application/x-www-form-urlencoded'; |
<?php | |
if (!isset($argv[1])) { | |
die('Usage: '.$argv[0].' <path>'); | |
} | |
$path = $argv[1]; | |
$fqcns = array(); | |
$allFiles = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)); |