Components\Posts\Controllers\Backend\PostCategoriesController::__construct PHP Метод

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

public __construct ( )
    public function __construct()
    {
        // Add location hinting for views
        View::addLocation(app_path() . '/components/posts/views');
        View::addNamespace('posts', app_path() . '/components/posts/views');
        if (Request::is('backend/page-categories*')) {
            $this->type = 'page';
        } else {
            $this->type = 'post';
        }
        parent::__construct();
    }