generated from yiisoft/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f444a25
commit b8c6732
Showing
54 changed files
with
3,204 additions
and
569 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Yiisoft\Aliases\Aliases; | ||
use Yiisoft\Definitions\DynamicReference; | ||
use Yiisoft\Translator\Extractor\ContentParser; | ||
use Yiisoft\Translator\Message\Php\MessageSource; | ||
use Yiisoft\TranslatorExtractor\CategorySource; | ||
use Yiisoft\TranslatorExtractor\Extractor; | ||
|
||
/** @var array $params */ | ||
|
||
return [ | ||
Extractor::class => [ | ||
'__construct()' => [ | ||
[ | ||
DynamicReference::to([ | ||
'class' => CategorySource::class, | ||
'__construct()' => [ | ||
'app', | ||
// Please set the following to use extractor. | ||
// MessageReader and MessageWriter should be set to the SAME MessageSource. | ||
DynamicReference::to(static function (Aliases $aliases) { | ||
return new MessageSource($aliases->get('@messages')); | ||
}), | ||
DynamicReference::to(static function (Aliases $aliases) { | ||
return new MessageSource($aliases->get('@messages')); | ||
}), | ||
], | ||
]), | ||
], | ||
'->t' | ||
], | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "yii3-extensions-app", | ||
"version": "0.1.0", | ||
"description": "Yii application template", | ||
"keywords": [ | ||
"yii3", | ||
"application", | ||
"template" | ||
], | ||
"author": "Wilmer Arambula <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"flag-icons": "^7.1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.