Skip to content

Commit 63d0467

Browse files
committed
Merge(dev) Rename namespace to Wdes\phpI18nL10n
2 parents 7b7b6fd + 79caeda commit 63d0467

File tree

15 files changed

+39
-37
lines changed

15 files changed

+39
-37
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
### Changed
1616
- Upgraded squizlabs/php_codesniffer from 3.3.x to 3.5.x
1717
- Upgraded phpstan/phpstan from 0.11.8+ to 0.12+
18+
- BREAKING CHANGE rename namespace to Wdes\phpI18nL10n
1819

1920
### Fixed
2021
- Test phpunit suite

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
],
5656
"autoload": {
5757
"psr-4": {
58-
"Wdes\\PIL\\": "src/"
58+
"Wdes\\phpI18nL10n\\": "src/"
5959
}
6060
},
6161
"autoload-dev": {

example/simple.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
require_once __DIR__ . '/../vendor/autoload.php';
66

7-
use \Wdes\PIL\plugins\MoReader;
8-
use \Wdes\PIL\Launcher;
9-
use \Wdes\PIL\Twig\Extension\I18n as ExtensionI18n;
7+
use \Wdes\phpI18nL10n\plugins\MoReader;
8+
use \Wdes\phpI18nL10n\Launcher;
9+
use \Wdes\phpI18nL10n\Twig\Extension\I18n as ExtensionI18n;
1010
use \Twig\Environment as TwigEnvironment;
1111
use \Twig\Loader\FilesystemLoader as TwigLoaderFilesystem;
1212

scripts/tools/generate-twig-cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
require_once(__DIR__ . '/../../vendor/autoload.php');
5454

55-
use \Wdes\PIL\Twig\Extension\I18n as ExtensionI18n;
55+
use \Wdes\phpI18nL10n\Twig\Extension\I18n as ExtensionI18n;
5656
use \Twig\Cache\FilesystemCache;
5757
use \Twig\Environment as TwigEnvironment;
5858
use \Twig\Loader\FilesystemLoader as TwigLoaderFilesystem;

src/Launcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
/* This Source Code Form is subject to the terms of the Mozilla Public
44
* License, v. 2.0. If a copy of the MPL was not distributed with this
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6-
namespace Wdes\PIL;
6+
namespace Wdes\phpI18nL10n;
77

8-
use \Wdes\PIL\plugins\BasePlugin;
8+
use Wdes\phpI18nL10n\plugins\BasePlugin;
99

1010
/**
1111
* Plugin for reading .mo files

src/Twig/Extension/I18n.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
/* This Source Code Form is subject to the terms of the Mozilla Public
44
* License, v. 2.0. If a copy of the MPL was not distributed with this
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6-
namespace Wdes\PIL\Twig\Extension;
6+
namespace Wdes\phpI18nL10n\Twig\Extension;
77

8-
use Wdes\PIL\Twig\TokenParser;
8+
use Wdes\phpI18nL10n\Twig\TokenParser;
99
use Twig\Extension\AbstractExtension;
1010
use Twig\TwigFilter;
1111

@@ -25,7 +25,7 @@ public function getFilters(): array
2525
{
2626
return [
2727
new TwigFilter(
28-
'trans', '\Wdes\PIL\Launcher::gettext'
28+
'trans', '\Wdes\phpI18nL10n\Launcher::gettext'
2929
),
3030
];
3131
}

src/Twig/MemoryCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/* This Source Code Form is subject to the terms of the Mozilla Public
44
* License, v. 2.0. If a copy of the MPL was not distributed with this
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6-
namespace Wdes\PIL\Twig;
6+
namespace Wdes\phpI18nL10n\Twig;
77

88
use \Twig\Cache\CacheInterface;
99
use \Twig\TemplateWrapper;

src/Twig/TokenParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
/* This Source Code Form is subject to the terms of the Mozilla Public
44
* License, v. 2.0. If a copy of the MPL was not distributed with this
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6-
namespace Wdes\PIL\Twig;
6+
namespace Wdes\phpI18nL10n\Twig;
77

8-
use \Wdes\PIL\Twig\TranslationNode;
8+
use Wdes\phpI18nL10n\Twig\TranslationNode;
99
use Twig\Error\SyntaxError;
1010
use Twig\Node\Expression\NameExpression;
1111
use Twig\Node\Node;

src/Twig/TranslationNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* License, v. 2.0. If a copy of the MPL was not distributed with this
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
66
*/
7-
namespace Wdes\PIL\Twig;
7+
namespace Wdes\phpI18nL10n\Twig;
88

99
use Twig\Compiler;
1010
use Twig\Node\Expression\AbstractExpression;
@@ -75,7 +75,7 @@ public function compile(Compiler $compiler): void
7575
$vars = array_merge($vars, $Pvars);
7676
}
7777

78-
$prefix = '\Wdes\PIL\Launcher::getPlugin()->';
78+
$prefix = '\Wdes\phpI18nL10n\Launcher::getPlugin()->';
7979
if ($this->hasNode('context')) {
8080
$function = $this->hasNode('plural') ? 'ngettext' : 'pgettext';
8181
} else {

src/plugins/BasePlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/* This Source Code Form is subject to the terms of the Mozilla Public
44
* License, v. 2.0. If a copy of the MPL was not distributed with this
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6-
namespace Wdes\PIL\plugins;
6+
namespace Wdes\phpI18nL10n\plugins;
77

88
/**
99
* Plugin interface

0 commit comments

Comments
 (0)