src/Providers/MikadoServiceProvider.php
protected function addFormatter(&$manager, $model, $formatter)
    {
        // Get the config
        $config = (include $this->configPath . '/' . $model . '.php');

        if(!isset($config[$formatter]))
            return;

        $formatterClass = 'kriskbx\mikado\Formatters\\' . $formatter;

        if (is_array($config[$formatter]) && count($config[$formatter]) > 0) {
            $manager->add(new $formatterClass($config[$formatter]));
        }
    }
protected function addFormatter(&$manager, $model, $formatter)
    {
        // Get the config
        $config = (include $this->configPath . '/' . $model . '.php');

        if(!isset($config[$formatter]))
            return;

        $formatterClass = 'kriskbx\mikado\Formatters\\' . $formatter;

        if (is_array($config[$formatter]) && count($config[$formatter]) > 0) {
            $manager->add(new $formatterClass($config[$formatter]));
        }
    }
protected function addFormatter ( & $ manager , $ model , $ formatter ) { // Get the config $ config = ( include $ this -> configPath . '/' . $ model . '.php' ) ; if ( ! isset ( $ config [ $ formatter ] ) ) return ; $ formatterClass = 'kriskbx\mikado\Formatters\\' . $ formatter ; if ( is_array ( $ config [ $ formatter ] ) && count ( $ config [ $ formatter ] ) > 0 ) { $ manager -> add ( new $ formatterClass ( $ config [ $ formatter ] ) ) ; } }
Add formatter to manager.

@param Manager $manager
@param string $model
@param string $formatter
Add formatter to manager .