src/Collector/Manager.php
public function register(string $name, string $class, string $description, array $options = [])
    {
        $name = strtolower($name);

        $this->app->getConfig()->write('collectors.' . $name, [
            'class' => $class,
            'description' => $description,
            'options' => $options,
        ]);
        $this->container->singleton($class);
        $this->container->alias($name, $class);
    }
public function register(string $name, string $class, string $description, array $options = [])
    {
        $name = strtolower($name);

        $this->app->getConfig()->write('collectors.' . $name, [
            'class' => $class,
            'description' => $description,
            'options' => $options,
        ]);
        $this->container->singleton($class);
        $this->container->alias($name, $class);
    }
public function register ( string $ name , string $ class , string $ description , array $ options = [ ] ) { $ name = strtolower ( $ name ) ; $ this -> app -> getConfig ( ) -> write ( 'collectors.' . $ name , [ 'class' => $ class , 'description' => $ description , 'options' => $ options , ] ) ; $ this -> container -> singleton ( $ class ) ; $ this -> container -> alias ( $ name , $ class ) ; }
Register a new collector

@param string $name
@param string $class
@param string $description
@param array $options
Register a new collector