Skip to content

Commit aa4c94d

Browse files
minor #19405 Fixed bugs in names of classes and methods. (zomberg)
This PR was squashed before being merged into the 2.7 branch (closes #19405). Discussion ---------- Fixed bugs in names of classes and methods. | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | ~ It's related to case sensitive. I changed only calls of names of called methods but not definition of methods because BC. Commits ------- c41aa03 Fixed bugs in names of classes and methods.
2 parents f2a5c48 + 7ec16ad commit aa4c94d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -823,10 +823,10 @@ private function getValidatorMappingFiles(ContainerBuilder $container)
823823

824824
if (is_dir($dir = $dirname.'/Resources/config/validation')) {
825825
foreach (Finder::create()->files()->in($dir)->name('*.xml') as $file) {
826-
$files[0][] = $file->getRealpath();
826+
$files[0][] = $file->getRealPath();
827827
}
828828
foreach (Finder::create()->files()->in($dir)->name('*.yml') as $file) {
829-
$files[1][] = $file->getRealpath();
829+
$files[1][] = $file->getRealPath();
830830
}
831831

832832
$container->addResource(new DirectoryResource($dir));
@@ -944,13 +944,13 @@ private function registerSerializerConfiguration(array $config, ContainerBuilder
944944

945945
if (is_dir($dir = $dirname.'/Resources/config/serialization')) {
946946
foreach (Finder::create()->files()->in($dir)->name('*.xml') as $file) {
947-
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\XmlFileLoader', array($file->getRealpath()));
947+
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\XmlFileLoader', array($file->getRealPath()));
948948
$definition->setPublic(false);
949949

950950
$serializerLoaders[] = $definition;
951951
}
952952
foreach (Finder::create()->files()->in($dir)->name('*.yml') as $file) {
953-
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\YamlFileLoader', array($file->getRealpath()));
953+
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\YamlFileLoader', array($file->getRealPath()));
954954
$definition->setPublic(false);
955955

956956
$serializerLoaders[] = $definition;

Translation/TranslationLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function loadMessages($directory, MessageCatalogue $catalogue)
5858
$extension = $catalogue->getLocale().'.'.$format;
5959
$files = $finder->files()->name('*.'.$extension)->in($directory);
6060
foreach ($files as $file) {
61-
$domain = substr($file->getFileName(), 0, -1 * strlen($extension) - 1);
61+
$domain = substr($file->getFilename(), 0, -1 * strlen($extension) - 1);
6262
$catalogue->addCatalogue($loader->load($file->getPathname(), $catalogue->getLocale(), $domain));
6363
}
6464
}

0 commit comments

Comments
 (0)