Skip to content

Commit 08b063a

Browse files
committed
Replace container get() with make() in translation package
1 parent 0c83757 commit 08b063a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/translation/src/LoaderFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __invoke(Container $container): LoaderContract
1818
: BASE_PATH . DIRECTORY_SEPARATOR . 'lang';
1919

2020
return new FileLoader(
21-
$container->get(Filesystem::class),
21+
$container->make(Filesystem::class),
2222
[
2323
dirname(__DIR__) . DIRECTORY_SEPARATOR . 'lang',
2424
$langPath,

src/translation/src/TranslatorFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ class TranslatorFactory
1212
{
1313
public function __invoke(Container $container): TranslatorContract
1414
{
15-
$config = $container->get('config');
15+
$config = $container->make('config');
1616

1717
// When registering the translator component, we'll need to set the default
1818
// locale as well as the fallback locale. So, we'll grab the application
1919
// configuration so we can easily get both of these values from there.
2020
$trans = new Translator(
21-
$container->get(LoaderContract::class),
21+
$container->make(LoaderContract::class),
2222
$config->get('app.locale', 'en')
2323
);
2424

0 commit comments

Comments
 (0)