/**
  * Pull in composer and register service provider
  */
 public function setUp()
 {
     $filesystem = new Filesystem();
     $filesystem->requireOnce(__DIR__ . "/vendor/autoload.php");
     $list = new ProviderList(\Core::getFacadeApplication());
     $list->registerProvider("\\Concrete\\DocumentationGenerator\\ServiceProvider");
 }
 protected function overrideEditor()
 {
     $assetList = \AssetList::getInstance();
     $assetList->register('javascript', 'editor/ckeditor', 'vendor/ckeditor/ckeditor.js', array(), $this->pkgHandle);
     $assetList->register('javascript', 'editor/ckeditor/jquery_adapter', 'vendor/ckeditor/adapters/jquery.js', array(), $this->pkgHandle);
     $assetList->registerGroup('editor/ckeditor', array(array('javascript', 'editor/ckeditor'), array('javascript', 'editor/ckeditor/jquery_adapter')));
     $providers = new ProviderList(\Core::getFacadeRoot());
     $providers->registerProvider('Concrete\\Package\\CommunityCkeditor\\Src\\Editor\\EditorServiceProvider');
     $this->registerInlinePlugin();
     $this->registerInternalPlugins();
 }
Exemplo n.º 3
0
/**
 * ----------------------------------------------------------------------------
 * Setup core classes aliases.
 * ----------------------------------------------------------------------------
 */
$list = ClassAliasList::getInstance();
$list->registerMultiple($config->get('app.aliases'));
$list->registerMultiple($config->get('app.facades'));
/**
 * ----------------------------------------------------------------------------
 * Setup the core service groups.
 * ----------------------------------------------------------------------------
 */
$list = new ProviderList($cms);
// Register events first so that they can be used by other providers.
$list->registerProvider($config->get('app.providers.core_events'));
// Register all other providers
$list->registerProviders($config->get('app.providers'));
/**
 * ----------------------------------------------------------------------------
 * Set trusted proxies and headers for the request
 * ----------------------------------------------------------------------------
 */
if ($proxyHeaders = $config->get('concrete.security.trusted_proxies.headers')) {
    foreach ($proxyHeaders as $key => $value) {
        Request::setTrustedHeaderName($key, $value);
    }
}
if ($trustedProxiesIps = $config->get('concrete.security.trusted_proxies.ips')) {
    Request::setTrustedProxies($trustedProxiesIps);
}