mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 05:13:37 +08:00
Update core container aliases
This commit is contained in:
parent
a147fb578a
commit
98dbe9136c
|
@ -704,21 +704,23 @@ class Application extends Container implements ApplicationContract
|
||||||
public function registerCoreContainerAliases()
|
public function registerCoreContainerAliases()
|
||||||
{
|
{
|
||||||
$aliases = [
|
$aliases = [
|
||||||
'app' => ['Flarum\Foundation\Application', 'Illuminate\Contracts\Container\Container', 'Illuminate\Contracts\Foundation\Application'],
|
'app' => [\Flarum\Foundation\Application::class, \Illuminate\Contracts\Container\Container::class, \Illuminate\Contracts\Foundation\Application::class, \Psr\Container\ContainerInterface::class],
|
||||||
'blade.compiler' => 'Illuminate\View\Compilers\BladeCompiler',
|
'blade.compiler' => [\Illuminate\View\Compilers\BladeCompiler::class],
|
||||||
'cache' => ['Illuminate\Cache\CacheManager', 'Illuminate\Contracts\Cache\Factory'],
|
'cache' => [\Illuminate\Cache\CacheManager::class, \Illuminate\Contracts\Cache\Factory::class],
|
||||||
'cache.store' => ['Illuminate\Cache\Repository', 'Illuminate\Contracts\Cache\Repository'],
|
'cache.store' => [\Illuminate\Cache\Repository::class, \Illuminate\Contracts\Cache\Repository::class],
|
||||||
'config' => ['Illuminate\Config\Repository', 'Illuminate\Contracts\Config\Repository'],
|
'config' => [\Illuminate\Config\Repository::class, \Illuminate\Contracts\Config\Repository::class],
|
||||||
'db' => 'Illuminate\Database\DatabaseManager',
|
'db' => [\Illuminate\Database\DatabaseManager::class],
|
||||||
'events' => ['Illuminate\Events\Dispatcher', 'Illuminate\Contracts\Events\Dispatcher'],
|
'db.connection' => [\Illuminate\Database\Connection::class, \Illuminate\Database\ConnectionInterface::class],
|
||||||
'files' => 'Illuminate\Filesystem\Filesystem',
|
'events' => [\Illuminate\Events\Dispatcher::class, \Illuminate\Contracts\Events\Dispatcher::class],
|
||||||
'filesystem' => ['Illuminate\Filesystem\FilesystemManager', 'Illuminate\Contracts\Filesystem\Factory'],
|
'files' => [\Illuminate\Filesystem\Filesystem::class],
|
||||||
'filesystem.disk' => 'Illuminate\Contracts\Filesystem\Filesystem',
|
'filesystem' => [\Illuminate\Filesystem\FilesystemManager::class, \Illuminate\Contracts\Filesystem\Factory::class],
|
||||||
'filesystem.cloud' => 'Illuminate\Contracts\Filesystem\Cloud',
|
'filesystem.disk' => [\Illuminate\Contracts\Filesystem\Filesystem::class],
|
||||||
'hash' => 'Illuminate\Contracts\Hashing\Hasher',
|
'filesystem.cloud' => [\Illuminate\Contracts\Filesystem\Cloud::class],
|
||||||
'mailer' => ['Illuminate\Mail\Mailer', 'Illuminate\Contracts\Mail\Mailer', 'Illuminate\Contracts\Mail\MailQueue'],
|
'hash' => [\Illuminate\Hashing\HashManager::class],
|
||||||
'validator' => ['Illuminate\Validation\Factory', 'Illuminate\Contracts\Validation\Factory'],
|
'hash.driver' => [\Illuminate\Contracts\Hashing\Hasher::class],
|
||||||
'view' => ['Illuminate\View\Factory', 'Illuminate\Contracts\View\Factory'],
|
'mailer' => [\Illuminate\Mail\Mailer::class, \Illuminate\Contracts\Mail\Mailer::class, \Illuminate\Contracts\Mail\MailQueue::class],
|
||||||
|
'validator' => [\Illuminate\Validation\Factory::class, \Illuminate\Contracts\Validation\Factory::class],
|
||||||
|
'view' => [\Illuminate\View\Factory::class, \Illuminate\Contracts\View\Factory::class],
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($aliases as $key => $aliases) {
|
foreach ($aliases as $key => $aliases) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user