$config Configuration settings for the helper */ public function __construct(View $view, array $config = []) { $config = Hash::merge(['engine' => 'Tools.Number'], $config); $engine = $config['engine']; $config['engine'] = Number::class; parent::__construct($view, $config); $this->setConfig('engine', $engine); $engineClass = App::className($engine, 'Utility'); if ($engineClass === null) { throw new CakeException(sprintf('Class for %s could not be found', $engine)); } $this->_engine = new $engineClass($config); } }