Barryvdh\LaravelIdeHelper\Generator::__construct PHP Method

__construct() public method

public __construct ( Illuminate\Config\Repository $config, Illuminate\View\Factory $view, Symfony\Component\Console\Output\OutputInterface $output = null, string $helpers = '' )
$config Illuminate\Config\Repository
$view Illuminate\View\Factory
$output Symfony\Component\Console\Output\OutputInterface
$helpers string
    public function __construct($config, $view, OutputInterface $output = null, $helpers = '')
    {
        $this->config = $config;
        $this->view = $view;
        // Find the drivers to add to the extra/interfaces
        $this->detectDrivers();
        $this->extra = array_merge($this->extra, $this->config->get('ide-helper.extra'));
        $this->magic = array_merge($this->magic, $this->config->get('ide-helper.magic'));
        $this->interfaces = array_merge($this->interfaces, $this->config->get('ide-helper.interfaces'));
        // Make all interface classes absolute
        foreach ($this->interfaces as &$interface) {
            $interface = '\\' . ltrim($interface, '\\');
        }
        $this->helpers = $helpers;
    }