Initialize application register bundles.

@return void
487113
public function initializeBundles()
    {
        $config = $this->getContainer()->singleton('kernel.config');
        $routing = $this->getContainer()->singleton('kernel.routing');

        $this->bundles = $this->registerBundles();

        foreach ($this->bundles as $bundle) {
            $bundle->setContainer($this->getContainer());
            $bundle->registerRouting($routing, $this->getEnvironment());
            $bundle->registerConfiguration($config, $this->getEnvironment());
        }

        unset($config, $routing);
    }
304021
public function initialize()
    {
        // attributes
        $this->setName('remote_app');
        $this->setPhpName('RemoteApp');
        $this->setClassname('Slashworks\\AppBundle\\Model\\RemoteApp');
        $this->setPackage('src.Slashworks.AppBundle.Model');
        $this->setUseIdGenerator(true);
        // columns
        $this->addPrimaryKey('id', 'Id', 'INTEGER', true, 10, null);
        $this->addColumn('type', 'Type', 'CHAR', true, null, 'contao');
        $this->getColumn('type', false)->setValueSet(array (
  0 => 'contao',
));
        $this->addColumn('name', 'Name', 'VARCHAR', true, 255, null);
        $this->addColumn('domain', 'Domain', 'VARCHAR', true, 255, null);
        $this->addColumn('api_url', 'ApiUrl', 'VARCHAR', true, 255, null);
        $this->addColumn('api_auth_http_user', 'ApiAuthHttpUser', 'VARCHAR', false, 50, null);
        $this->addColumn('api_auth_http_password', 'ApiAuthHttpPassword', 'VARCHAR', false, 255, null);
        $this->addColumn('api_auth_type', 'ApiAuthType', 'CHAR', true, null, 'none');
        $this->getColumn('api_auth_type', false)->setValueSet(array (
  0 => 'none',
  1 => 'http-basic',
  2 => 'url-user-password',
  3 => 'url-token',
));
        $this->addColumn('api_auth_user', 'ApiAuthUser', 'VARCHAR', false, 255, null);
        $this->addColumn('api_auth_password', 'ApiAuthPassword', 'VARCHAR', false, 255, null);
        $this->addColumn('api_auth_token', 'ApiAuthToken', 'VARCHAR', false, 255, null);
        $this->addColumn('api_auth_url_user_key', 'ApiAuthUrlUserKey', 'VARCHAR', false, 50, null);
        $this->addColumn('api_auth_url_pw_key', 'ApiAuthUrlPwKey', 'VARCHAR', false, 50, null);
        $this->addColumn('cron', 'Cron', 'VARCHAR', false, 20, null);
        $this->addForeignKey('customer_id', 'CustomerId', 'INTEGER', 'customer', 'id', false, 10, null);
        $this->addColumn('activated', 'Activated', 'BOOLEAN', true, 1, false);
        $this->addColumn('notes', 'Notes', 'LONGVARCHAR', false, null, null);
        $this->addColumn('last_run', 'LastRun', 'TIMESTAMP', false, null, null);
        $this->addColumn('includeLog', 'Includelog', 'BOOLEAN', true, 1, false);
        $this->addColumn('public_key', 'PublicKey', 'VARCHAR', false, 512, null);
        $this->addColumn('website_hash', 'WebsiteHash', 'VARCHAR', false, 255, '');
        $this->addColumn('notification_recipient', 'NotificationRecipient', 'VARCHAR', true, 255, '');
        $this->addColumn('notification_sender', 'NotificationSender', 'VARCHAR', true, 255, '');
        $this->addColumn('notification_change', 'NotificationChange', 'BOOLEAN', true, 1, true);
        $this->addColumn('notification_error', 'NotificationError', 'BOOLEAN', true, 1, true);
        // validators
    }
1039252
protected function registerConfigBindings()
    {
        $loader = new FileLoader(new Filesystem(), $this->resourcePath('config'));

        $this->singleton('config', function () use ($loader) {
            return new Repository($loader, $this->environment());
        });
    }
1124313
public function register()
    {
        $this->app->bindShared('packages', function ($app)
        {
            $repository = new Repository($app['config'], $app['files']);

            return new PackageManager($app, $repository);
        });
    }
377125
public function initialize()
    {
        //The global dispatcher

        //state the application is initialized;
        //register aliases as class mocks such that static calls on mock map to instance calls;
        $this->createAliasMock(
            array_merge(
                $this->aliases, [
                    "route" => 'Budkit\Routing\Router', //this such that we can call Route::add to add router;
                    'controller' => 'Budkit\Routing\Controller',
                    'view' => 'Budkit\View\Display'
                ]
            )
        );

        //Trigger the app initialise event;
        $this->observer->trigger(new Event("app.init", $this));
    }
397721
private function initInstalledPackages()
    {
        /** @var PackageInterface $package */
        foreach ($this->installedRepository->getPackages() as $package) {
            $operator = $this->getFilterOperator($package);
            /** @var Link $link */
            $link = current($this->arrayLoader->parseLinks($this->package->getName(), $this->package->getVersion(), 'installed', array($package->getName() => $operator.$package->getPrettyVersion())));
            $link = $this->includeRootConstraint($package, $link);

            $this->requires[$package->getName()] = $link;
        }
    }
1344122
protected function initialize() {
		foreach ( $this->apply_filters( 'filter', $this->app->config->load( 'filter' ) ) as $class => $tags ) {
			$this->register_class_filter( $class, $tags );
		}
	}
1023724
protected function init()
    {
        $this->setupContainer();
        $this->configure();
        $this->errorHandling();
        $this->registerServices();

        $this->initialized = true;
    }
547817
public static function register($bundle, $config = array())
	{
		$defaults = array('handles' => null, 'auto' => false);

		// If the given configuration is actually a string, we will assume it is a
		// location and set the bundle name to match it. This is common for most
		// bundles that simply live in the root bundle directory.
		if (is_string($config))
		{
			$bundle = $config;

			$config = array('location' => $bundle);
		}

		// If no location is set, we will set the location to match the name of
		// the bundle. This is for bundles that are installed on the root of
		// the bundle directory so a location was not set.
		if ( ! isset($config['location']))
		{
			$config['location'] = $bundle;
		}

		static::$bundles[$bundle] = array_merge($defaults, $config);

		// It is possible for the developer to specify auto-loader mappings
		// directly on the bundle registration. This provides a convenient
		// way to register mappings without a bootstrap.
		if (isset($config['autoloads']))
		{
			static::autoloads($bundle, $config);
		}
	}
465868
protected function arrangeBundlesForEnvironment()
    {
        foreach ($this->autoloaderCollection as $autoloader) {
            $autoloaderBundles = $autoloader->getBundles();
            foreach ($autoloaderBundles as $environment => $bundles) {
                foreach ($bundles as $bundle) {
                    $this->environmentsBundles[$environment][] = $bundle;
                }
            }
        }
        
        $this->register('all');
        $this->register($this->environment);
        $this->orderBundles();
    }
354701
public static function init() {
		if ( ! isset( self::$instance ) && ! ( self::$instance instanceof Loader ) ) {
			self::$instance = new Loader();
			$modules        = array_merge( self::$available_modules, apply_filters( 'themeisle_sdk_modules', [] ) );
			foreach ( $modules as $key => $module ) {
				if ( ! class_exists( 'ThemeisleSDK\\Modules\\' . ucwords( $module, '_' ) ) ) {
					unset( $modules[ $key ] );
				}
			}
			self::$available_modules = $modules;
		}
	}
618129
public final void register() {
        synchronized (lock) {
            if (serviceRegistration == null) {
                BundleClassResolver resolver = new BundleClassResolver();
                serviceRegistration = bundleContext.registerService(SERVICE_NAMES, resolver, serviceProperties);
            }
        }
    }
1295140
protected function init()
	{
	    // language load lang
	    Ioc::language()->setLocale(Config::get('lang'));
	    Ioc::language()->load('common');
	    
	    // errorHandler register
	    Ioc::errorHandler()->register();
	    
	    if ($components = Config::get('components')) {
	        foreach ($components as $key => $def) {
	            Ioc::container()->setShared($key, $def);
	        }
	    }
	}
127586
protected function initializeBundles()
    {
        // init bundles
        $this->bundles = [];
        foreach ($this->registerBundles() as $bundle) {
            $name = $bundle->getName();
            if (isset($this->bundles[$name])) {
                throw new \LogicException(sprintf('Trying to register two bundles with the same name "%s"', $name));
            }
            $this->bundles[$name] = $bundle;
        }
    }
735873
protected function initialize()
    {
        if ($this->packagesData !== null) {
            return;
        }
        $this->packagesData = Tools::getPackagesData($this->packagesPath);

        $this->migrations = array();
        foreach ($this->packagesData as $packageKey => $packageData) {
            $this->registerMigrationFiles(Files::concatenatePaths(array($this->packagesPath, $packageData['category'], $packageKey)));
        }
        ksort($this->migrations);
    }
1081175
void setupBundles() {

        Locale oldLocale;

        synchronized (BundleHandler.class) {
            oldLocale = BundleHandler.getLocale();

            BundleHandler.setLocale(Locale.getDefault());

            hnd_column_remarks =
                BundleHandler.getBundleHandle("column-remarks", null);
            hnd_table_remarks = BundleHandler.getBundleHandle("table-remarks",
                    null);

            BundleHandler.setLocale(oldLocale);
        }
    }
971085
public function initialize() {
		Configure::write('Cache.disable', true);
		parent::initialize();

		if (!Configure::check('CakeInstaller')) {
			$this->ConfigInstaller->initConfig();
		}

		foreach ($this->_defaultConfigs['default'] as $paramName => &$paramOptions) {
			if (isset($paramOptions['label'])) {
				$paramOptions['label'] = __d('cake_installer_label', $paramOptions['label']);
			}
		}
	}