Setup the resource publishing groups for Horizon.

@return void
338786
protected function offerPublishing()
    {
        if ($this->app->runningInConsole()) {
            $this->publishes([
                __DIR__.'/../stubs/HorizonServiceProvider.stub' => app_path('Providers/HorizonServiceProvider.php'),
            ], 'horizon-provider');

            $this->publishes([
                __DIR__.'/../config/horizon.php' => config_path('horizon.php'),
            ], 'horizon-config');
        }
    }
1233411
protected function setupAssets()
    {
        $this->mergeConfigFrom($config = __DIR__ . '/config/datatables.php', 'datatables');

        if ($this->app->runningInConsole()) {
            $this->publishes([$config => config_path('datatables.php')], 'datatables');
        }
    }
984246
protected function registerPublisher(): void
    {
        $this->app->singleton('orchestra.publisher', function (Application $app) {
            $memory = $app->make('orchestra.platform.memory');

            return (new PublisherManager($app))->attach($memory);
        });
    }
838776
protected function setPagerListCategoryGroup()
    {
        $options = $this->query_filter;
        $options['count'] = true;

        $pager = array(
            'query' => $this->query_filter,
            'total' => (int) $this->category_group->getList($options)
        );

        return $this->data_limit = $this->setPager($pager);
    }
494254
protected function addgroup_hostnames(){
		$this->registerGroup(BLang::_('ADMIN_CONFIG_GENERAL_HOSTNAMES'),'hostnames',array(
			new BConfigFieldString(
				'BHOSTNAME',
				BLang::_('ADMIN_CONFIG_GENERAL_BHOSTNAME'),
				'vidido.ua'),
			new BConfigFieldString(
				'BHOSTNAME_STATIC',
				BLang::_('ADMIN_CONFIG_GENERAL_BHOSTNAME_STATIC'),
				'static.vidido.ua'),
			new BConfigFieldString(
				'BHOSTNAME_MEDIA',
				BLang::_('ADMIN_CONFIG_GENERAL_BHOSTNAME_MEDIA'),
				'media.vidido.ua')
			));
		}
1196886
protected function setup() {
		$conf = $this->conf;

		$options = [];
		foreach ($conf['options'] as $key => $setting) {
			if ($setting != null && is_array($setting)) {
				$options[$setting['key']] = $setting['value'];
			}
		}

		$dbh = $this->dbh = new \PDO($conf['dsn'], $conf['username'], $conf['password'], $options);
		
		foreach ($this->conf['attributes'] as $key => $setting) {
			if ($setting != null && is_array($setting)) {
				$dbh->setAttribute($setting['key'], $setting['value']);
			}
		}

		$offset = \hlin\Time::timezoneOffset($conf['timezone']);
		$dbh->exec("SET time_zone='$offset';");
	}
1141759
public function setup_from_params() {
        $this->attempts   = optional_param('attempts', $this->attempts, PARAM_ALPHAEXT);
        $this->group      = groups_get_activity_group($this->cm, true);
        $this->onlygraded = optional_param('onlygraded', $this->onlygraded, PARAM_BOOL);
        $this->pagesize   = optional_param('pagesize', $this->pagesize, PARAM_INT);

        $states = optional_param('states', '', PARAM_ALPHAEXT);
        if (!empty($states)) {
            $this->states = explode('-', $states);
        }

        $this->download   = optional_param('download', $this->download, PARAM_ALPHA);
    }
1353195
protected function registerPublishes(): void
    {
        if ($this->app->runningInConsole()) {
            $migrationsPath = __DIR__ . '/../../database/migrations';

            $this->publishes([
                $migrationsPath => database_path('migrations'),
            ], 'migrations');

            $this->loadMigrationsFrom($migrationsPath);
        }
    }
825142
protected function setupMiddleware()
    {
        $this->editorFormat = StoryFormat::get(Input::get('format'));

        $this->middleware('orchestra.auth');
        $this->middleware("orchestra.story.editor:{$this->editorFormat}");
    }
528245
protected function prepareResources()
    {
        // Publish config
        $config = realpath(__DIR__.'/../config/config.php');

        $this->mergeConfigFrom($config, 'cartalyst.sentinel');

        $this->publishes([
            $config => config_path('cartalyst.sentinel.php'),
        ], 'config');

        // Publish migrations
        $migrations = realpath(__DIR__.'/../migrations');

        $this->publishes([
            $migrations => $this->app->databasePath().'/migrations',
        ], 'migrations');
    }
758235
public void setupSFields()
    {
        this.getRecord(UserGroup.USER_GROUP_FILE).getField(UserGroup.DESCRIPTION).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
    }
908316
private function publishResources()
    {
        $this->publishes([__DIR__.'/../../resources/config/defender.php' => config_path('defender.php')], 'config');
        $this->mergeConfigFrom(__DIR__.'/../../resources/config/defender.php', 'defender');
        $this->loadViewsFrom(__DIR__.'/../../resources/views', 'defender');
    }
1261257
protected function setUp(): void
    {
        $this->addPointerToTokens();

        $this->docTagHelper = new DocTagHelper(
            $this->file,
            $this->stackPos,
            $this->tokens
        );
    }
784102
public function setup()
    {
        $this->groupRoutes();

        foreach ($this->routes as $type => $routes) {
            foreach ($routes as $name => $route) {
                $newRoute = new Route($name, $route);
                if (!$newRoute->hasParam('hostname')) {
                    $newRoute->setParam('hostname', $this->resolveDefaultHostName());
                }

                $routeType = $this->resolveRouteType($type);
                $routeType->add($this->getRouter(), $newRoute);
            }
        }
    }
119854
protected function bootPublishes()
    {
        $configPath = __DIR__ . '/../config';
        $this->mergeConfigFrom($configPath . '/config.php', 'graphql');
        $this->publishes([$configPath . '/config.php' => config_path('graphql.php')], 'config');
    }
787361
private function publishFiles()
    {
        $publishTag = $this->_packageTag;

        $this->publishes([
            __DIR__ . '/config/' . $this->_packageTag . '.php' => base_path('config/' . $this->_packageTag . '.php'),
        ], $publishTag);

        $this->publishes([
            __DIR__ . '/resources/views' => base_path('resources/views/vendor/' . $this->_packageTag),
        ], $publishTag);

        $this->publishes([
            __DIR__ . '/resources/lang' => base_path('resources/lang/vendor/' . $this->_packageTag),
        ], $publishTag);
    }
388765
final public function setup()
    {
        if (!$this->setup) {
            // configure our datagrid
            $resolver = new OptionsResolver();
            $this->configureOptions($resolver);
            $this->options = $resolver->resolve($this->getOptions());

            $this->setup = true;
        }
    }