/**
* Register the core class aliases in the container.
*
* @return void
*/
public
function
registerCoreContainerAliases()
{
$aliases
= [
'app'
=> [IlluminateFoundationApplication::
class
, IlluminateContractsContainerContainer::
class
, IlluminateContractsFoundationApplication::
class
],
'auth'
=> [IlluminateAuthAuthManager::
class
, IlluminateContractsAuthFactory::
class
],
'auth.driver'
=> [IlluminateContractsAuthGuard::
class
],
'blade.compiler'
=> [IlluminateViewCompilersBladeCompiler::
class
],
'cache'
=> [IlluminateCacheCacheManager::
class
, IlluminateContractsCacheFactory::
class
],
'cache.store'
=> [IlluminateCacheRepository::
class
, IlluminateContractsCacheRepository::
class
],
'config'
=> [IlluminateConfigRepository::
class
, IlluminateContractsConfigRepository::
class
],
'cookie'
=> [IlluminateCookieCookieJar::
class
, IlluminateContractsCookieFactory::
class
, IlluminateContractsCookieQueueingFactory::
class
],
'encrypter'
=> [IlluminateEncryptionEncrypter::
class
, IlluminateContractsEncryptionEncrypter::
class
],
'db'
=> [IlluminateDatabaseDatabaseManager::
class
],
'db.connection'
=> [IlluminateDatabaseConnection::
class
, IlluminateDatabaseConnectionInterface::
class
],
'events'
=> [IlluminateEventsDispatcher::
class
, IlluminateContractsEventsDispatcher::
class
],
'files'
=> [IlluminateFilesystemFilesystem::
class
],
'filesystem'
=> [IlluminateFilesystemFilesystemManager::
class
, IlluminateContractsFilesystemFactory::
class
],
'filesystem.disk'
=> [IlluminateContractsFilesystemFilesystem::
class
],
'filesystem.cloud'
=> [IlluminateContractsFilesystemCloud::
class
],
'hash'
=> [IlluminateContractsHashingHasher::
class
],
'translator'
=> [IlluminateTranslationTranslator::
class
, IlluminateContractsTranslationTranslator::
class
],
'log'
=> [IlluminateLogWriter::
class
, IlluminateContractsLoggingLog::
class
, PsrLogLoggerInterface::
class
],
'mailer'
=> [IlluminateMailMailer::
class
, IlluminateContractsMailMailer::
class
, IlluminateContractsMailMailQueue::
class
],
'auth.password'
=> [IlluminateAuthPasswordsPasswordBrokerManager::
class
, IlluminateContractsAuthPasswordBrokerFactory::
class
],
'auth.password.broker'
=> [IlluminateAuthPasswordsPasswordBroker::
class
, IlluminateContractsAuthPasswordBroker::
class
],
'queue'
=> [IlluminateQueueQueueManager::
class
, IlluminateContractsQueueFactory::
class
, IlluminateContractsQueueMonitor::
class
],
'queue.connection'
=> [IlluminateContractsQueueQueue::
class
],
'queue.failer'
=> [IlluminateQueueFailedFailedJobProviderInterface::
class
],
'redirect'
=> [IlluminateRoutingRedirector::
class
],
'redis'
=> [IlluminateRedisRedisManager::
class
, IlluminateContractsRedisFactory::
class
],
'request'
=> [IlluminateHttpRequest::
class
, SymfonyComponentHttpFoundationRequest::
class
],
'router'
=> [IlluminateRoutingRouter::
class
, IlluminateContractsRoutingRegistrar::
class
, IlluminateContractsRoutingBindingRegistrar::
class
],
'session'
=> [IlluminateSessionSessionManager::
class
],
'session.store'
=> [IlluminateSessionStore::
class
, IlluminateContractsSessionSession::
class
],
'url'
=> [IlluminateRoutingUrlGenerator::
class
, IlluminateContractsRoutingUrlGenerator::
class
],
'validator'
=> [IlluminateValidationFactory::
class
, IlluminateContractsValidationFactory::
class
],
'view'
=> [IlluminateViewFactory::
class
, IlluminateContractsViewFactory::
class
],
];
foreach
(
$aliases
as
$key
=>
$aliases
) {
foreach
(
$aliases
as
$alias
) {
$this
->alias(
$key
,
$alias
);
}
}
}