/**
  * 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
}
@date_default_timezone_set($config->get('app.timezone'));
/**
 * ----------------------------------------------------------------------------
 * 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')) {
Exemplo n.º 4
0
 public function testAllServiceProviders()
 {
     $groups = array('\\Concrete\\Core\\File\\FileServiceProvider', '\\Concrete\\Core\\Encryption\\EncryptionServiceProvider', '\\Concrete\\Core\\Validation\\ValidationServiceProvider', '\\Concrete\\Core\\Localization\\LocalizationServiceProvider', '\\Concrete\\Core\\Feed\\FeedServiceProvider', '\\Concrete\\Core\\Html\\HtmlServiceProvider', '\\Concrete\\Core\\Mail\\MailServiceProvider', '\\Concrete\\Core\\Application\\ApplicationServiceProvider', '\\Concrete\\Core\\Utility\\UtilityServiceProvider', '\\Concrete\\Core\\Database\\DatabaseServiceProvider', '\\Concrete\\Core\\Form\\FormServiceProvider', '\\Concrete\\Core\\Session\\SessionServiceProvider', '\\Concrete\\Core\\Http\\HttpServiceProvider', '\\Concrete\\Core\\Events\\EventsServiceProvider');
     $gr = new ProviderList($this->sl);
     $gr->registerProviders($groups);
     $this->assertTrue($this->sl->bound('helper/concrete/ui'));
     $this->assertTrue($this->sl->bound('helper/concrete/ui/help'));
     $this->assertTrue($this->sl->bound('helper/concrete/asset_library'));
     $this->assertTrue($this->sl->bound('helper/mime'));
     $this->assertTrue($this->sl->bound('director'));
 }
 public function __construct(\Concrete\Core\Application\Application $app, \Symfony\Component\Console\Application $console)
 {
     parent::__construct($app);
     $this->console = $console;
 }
Exemplo n.º 6
0
$list->registerMultiple($config->get('app.aliases'));
$list->registerMultiple($config->get('app.facades'));
/**
 * ----------------------------------------------------------------------------
 * Set up Database Config.
 * ----------------------------------------------------------------------------
 */
$database_loader = new DatabaseLoader();
$database_saver = new DatabaseSaver();
$cms->instance('config/database', $database_config = new ConfigRepository($database_loader, $database_saver, $cms->environment()));
/**
 * ----------------------------------------------------------------------------
 * Setup the core service groups.
 * ----------------------------------------------------------------------------
 */
$list = new ProviderList($cms);
$list->registerProviders($config->get('app.providers'));
/**
 * ----------------------------------------------------------------------------
 * Setup file cache directories. Has to come after we define services
 * because we use the file service.
 * ----------------------------------------------------------------------------
 */
$cms->setupFilesystem();
/**
 * ----------------------------------------------------------------------------
 * Handle text encoding.
 * ----------------------------------------------------------------------------
 */
Bootup::initAll();
/**