for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nip\Inflector;
use Nip\Container\ServiceProviders\Providers\AbstractSignatureServiceProvider;
/**
* Class DebugBarServiceProvider
* @package Nip\DebugBar
*/
class InflectorServiceProvider extends AbstractSignatureServiceProvider
{
* @inheritdoc
public function register()
$this->getContainer()->share('inflector', function () {
$inflector = new Inflector();
$path = $this->getContainer()->get('path.storage') . DIRECTORY_SEPARATOR . 'cache';
$inflector->setCachePath($path);
return $inflector;
});
}
public function provides()
return ['inflector'];