• Laravel生命周期


    /**
     * 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);
            }
        }
    }
  • 相关阅读:
    cf1058c 暴力
    cf1058b 点是否在一个矩形里
    cf1058E 思维 前缀处理 位运算
    Codeforces Round #622 (Div. 2)C(单调栈,DP)
    Codeforces Round #623 (Div. 1, based on VK Cup 2019-2020
    Atcoder Beginner Contest 156E(隔板法,组合数学)
    【PAT甲级】1117 Eddington Number (25分)
    【PAT甲级】1116 Come on! Let's C (20分)
    【PAT甲级】1115 Counting Nodes in a BST (30分)(二叉查找树)
    Codeforces Round #621 (Div. 1 + Div. 2)E(二分查找,枚举分界点,容斥原理)
  • 原文地址:https://www.cnblogs.com/wuyuxin/p/7039680.html
Copyright © 2020-2023  润新知