laravel5.5源码阅读草稿——入口
2018-09-10 00:56:28来源:博客园 阅读 ()
在laravel把系统基础核心初始化完毕后,便通过application 的 make 方法,传入了http核心的类名来获取别名(在container类的aliases属性中,存储了众多类名与别名的键值对,似乎是通过类名到别名,再到实例的方式来获取的,数组见下方)
1 container->aliases 2 = 3 array:64 [▼ 4 "Illuminate\Foundation\Application" => "app" 5 "Illuminate\Contracts\Container\Container" => "app" 6 "Illuminate\Contracts\Foundation\Application" => "app" 7 "Psr\Container\ContainerInterface" => "app" 8 "Illuminate\Auth\AuthManager" => "auth" 9 "Illuminate\Contracts\Auth\Factory" => "auth" 10 "Illuminate\Contracts\Auth\Guard" => "auth.driver" 11 "Illuminate\View\Compilers\BladeCompiler" => "blade.compiler" 12 "Illuminate\Cache\CacheManager" => "cache" 13 "Illuminate\Contracts\Cache\Factory" => "cache" 14 "Illuminate\Cache\Repository" => "cache.store" 15 "Illuminate\Contracts\Cache\Repository" => "cache.store" 16 "Illuminate\Config\Repository" => "config" 17 "Illuminate\Contracts\Config\Repository" => "config" 18 "Illuminate\Cookie\CookieJar" => "cookie" 19 "Illuminate\Contracts\Cookie\Factory" => "cookie" 20 "Illuminate\Contracts\Cookie\QueueingFactory" => "cookie" 21 "Illuminate\Encryption\Encrypter" => "encrypter" 22 "Illuminate\Contracts\Encryption\Encrypter" => "encrypter" 23 "Illuminate\Database\DatabaseManager" => "db" 24 "Illuminate\Database\Connection" => "db.connection" 25 "Illuminate\Database\ConnectionInterface" => "db.connection" 26 "Illuminate\Events\Dispatcher" => "events" 27 "Illuminate\Contracts\Events\Dispatcher" => "events" 28 "Illuminate\Filesystem\Filesystem" => "files" 29 "Illuminate\Filesystem\FilesystemManager" => "filesystem" 30 "Illuminate\Contracts\Filesystem\Factory" => "filesystem" 31 "Illuminate\Contracts\Filesystem\Filesystem" => "filesystem.disk" 32 "Illuminate\Contracts\Filesystem\Cloud" => "filesystem.cloud" 33 "Illuminate\Contracts\Hashing\Hasher" => "hash" 34 "Illuminate\Translation\Translator" => "translator" 35 "Illuminate\Contracts\Translation\Translator" => "translator" 36 "Illuminate\Log\Writer" => "log" 37 "Illuminate\Contracts\Logging\Log" => "log" 38 "Psr\Log\LoggerInterface" => "log" 39 "Illuminate\Mail\Mailer" => "mailer" 40 "Illuminate\Contracts\Mail\Mailer" => "mailer" 41 "Illuminate\Contracts\Mail\MailQueue" => "mailer" 42 "Illuminate\Auth\Passwords\PasswordBrokerManager" => "auth.password" 43 "Illuminate\Contracts\Auth\PasswordBrokerFactory" => "auth.password" 44 "Illuminate\Auth\Passwords\PasswordBroker" => "auth.password.broker" 45 "Illuminate\Contracts\Auth\PasswordBroker" => "auth.password.broker" 46 "Illuminate\Queue\QueueManager" => "queue" 47 "Illuminate\Contracts\Queue\Factory" => "queue" 48 "Illuminate\Contracts\Queue\Monitor" => "queue" 49 "Illuminate\Contracts\Queue\Queue" => "queue.connection" 50 "Illuminate\Queue\Failed\FailedJobProviderInterface" => "queue.failer" 51 "Illuminate\Routing\Redirector" => "redirect" 52 "Illuminate\Redis\RedisManager" => "redis" 53 "Illuminate\Contracts\Redis\Factory" => "redis" 54 "Illuminate\Http\Request" => "request" 55 "Symfony\Component\HttpFoundation\Request" => "request" 56 "Illuminate\Routing\Router" => "router" 57 "Illuminate\Contracts\Routing\Registrar" => "router" 58 "Illuminate\Contracts\Routing\BindingRegistrar" => "router" 59 "Illuminate\Session\SessionManager" => "session" 60 "Illuminate\Session\Store" => "session.store" 61 "Illuminate\Contracts\Session\Session" => "session.store" 62 "Illuminate\Routing\UrlGenerator" => "url" 63 "Illuminate\Contracts\Routing\UrlGenerator" => "url" 64 "Illuminate\Validation\Factory" => "validator" 65 "Illuminate\Contracts\Validation\Factory" => "validator" 66 "Illuminate\View\Factory" => "view" 67 "Illuminate\Contracts\View\Factory" => "view" 68 ]
$bootstrappers = [ 'Illuminate\Foundation\Bootstrap\DetectEnvironment', 'Illuminate\Foundation\Bootstrap\LoadConfiguration', 'Illuminate\Foundation\Bootstrap\ConfigureLogging', 'Illuminate\Foundation\Bootstrap\HandleExceptions', 'Illuminate\Foundation\Bootstrap\RegisterFacades', 'Illuminate\Foundation\Bootstrap\RegisterProviders', 'Illuminate\Foundation\Bootstrap\BootProviders', ];
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- PHP创建数组的实例代码 2019-10-09
- php一致性hash算法的应用 2019-04-25
- plupload分片上传视频文件源码展示 2019-04-18
- laravel5.5源码笔记(六、中间件) 2019-02-27
- 三篇文章带你极速入门php(一)之语法 2019-01-11
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash