Components\ContactManager\Controllers\Backend\ContactController::__construct PHP Метод

__construct() публичный Метод

public __construct ( )
    public function __construct()
    {
        $this->config = json_decode(file_get_contents(__DIR__ . '/../../module.json'), true);
        $this->forms = $this->config['forms'];
        $this->module_name = $this->config['info']['name'];
        $this->module_alias = $this->config['info']['alias'];
        $this->module_link = Str::snake($this->module_alias, '_');
        View::share('module_name', $this->module_name);
        View::share('module_alias', $this->module_alias);
        View::share('module_link', $this->module_link);
        parent::__construct();
        $this->type = $this->link_type;
        // Add location hinting for views
        View::addNamespace('contact_manager', app_path() . "/../resources/views/{$this->type}/{$this->current_theme}/contact_manager");
    }