-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
994ad25
commit 53d0ca0
Showing
18 changed files
with
185 additions
and
181 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,16 +24,14 @@ | |
* @author Thomas Rabaix <[email protected]> | ||
* @author Alexander <[email protected]> | ||
*/ | ||
class Configuration implements ConfigurationInterface | ||
final class Configuration implements ConfigurationInterface | ||
{ | ||
/** | ||
* @psalm-suppress PossiblyNullReference, PossiblyUndefinedMethod | ||
* | ||
* @see https://github.com/psalm/psalm-plugin-symfony/issues/174 | ||
* | ||
* @return TreeBuilder | ||
*/ | ||
public function getConfigTreeBuilder() | ||
public function getConfigTreeBuilder(): TreeBuilder | ||
{ | ||
$treeBuilder = new TreeBuilder('sonata_intl'); | ||
$rootNode = $treeBuilder->getRootNode(); | ||
|
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 |
---|---|---|
|
@@ -21,12 +21,10 @@ | |
use Symfony\Component\HttpKernel\DependencyInjection\Extension; | ||
|
||
/** | ||
* SonataIntlExtension. | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
* @author Alexander <[email protected]> | ||
*/ | ||
class SonataIntlExtension extends Extension | ||
final class SonataIntlExtension extends Extension | ||
{ | ||
/** | ||
* @param array<mixed> $configs | ||
|
@@ -47,7 +45,7 @@ public function load(array $configs, ContainerBuilder $container): void | |
/** | ||
* @param mixed[] $config | ||
*/ | ||
protected function configureTimezone(ContainerBuilder $container, array $config): void | ||
private function configureTimezone(ContainerBuilder $container, array $config): void | ||
{ | ||
if (isset($config['timezone']['service'])) { | ||
$container->setAlias('sonata.intl.timezone_detector', $config['timezone']['service']); | ||
|
@@ -88,8 +86,6 @@ protected function configureTimezone(ContainerBuilder $container, array $config) | |
} | ||
|
||
/** | ||
* Validate timezones. | ||
* | ||
* @param array<string> $timezones | ||
* | ||
* @throws \RuntimeException If one of the locales is invalid | ||
|
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
Oops, something went wrong.