for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Jared King <[email protected]>
*
* @link http://jaredtking.com
* @copyright 2015 Jared King
* @license MIT
*/
namespace Infuse\Services;
class Locale
{
public function __invoke($app)
$config = $app['config'];
$assetsDir = $config->get('dirs.assets');
$locale = new \Infuse\Locale($config->get('i18n.locale'));
$locale->setLocaleDataDir("$assetsDir/locales");
return $locale;
}