Skip to content

Instantly share code, notes, and snippets.

@jlaso
Forked from coma/AppKernel.php
Created March 21, 2013 14:42
Show Gist options
  • Save jlaso/5213559 to your computer and use it in GitHub Desktop.
Save jlaso/5213559 to your computer and use it in GitHub Desktop.
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
use Doctrine\Common\Inflector\Inflector;
class AppKernel extends Kernel
{
public function __construct($environment, $debug)
{
Inflector::rules('singular', [
'/(d|n|r|s)es$/i' => '\1\2',
'/(sis)$/i' => '\1\2',
'/([ti])a$/i' => '\1a',
]);
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment