Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 7238353

Browse files
Change autoloading strategy to PSR-4
1 parent 8eb76bc commit 7238353

15 files changed

Lines changed: 8 additions & 9 deletions

composer.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,20 @@
1111
"email": "code@oll.ie"
1212
},
1313
{
14-
"name": "Lendable Developers",
14+
"name": "Lendable Ltd",
1515
"email": "dev@lendable.co.uk"
1616
}
1717
],
18+
"autoload": {
19+
"psr-4": {
20+
"Oh\\FormErrorLogBundle\\": "src/"
21+
}
22+
},
1823
"require": {
1924
"php": ">=5.5",
2025
"symfony/symfony": "~2.7|~3.0|~4.0"
2126
},
2227
"require-dev": {
2328
"jakub-onderka/php-parallel-lint": "^0.9.2"
24-
},
25-
"autoload": {
26-
"psr-0": {
27-
"Oh\\FormErrorLogBundle": ""
28-
}
29-
},
30-
"target-dir": "Oh/FormErrorLogBundle"
29+
}
3130
}

DependencyInjection/OhFormErrorLogExtension.php renamed to src/DependencyInjection/OhFormErrorLogExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function load(array $configs, ContainerBuilder $container)
2525
$container->setAlias('oh_form_error_log.logger.manager', $config['logger']);
2626
$container->setParameter('oh_form_error_log.db.entity.class', $config['db_entity_class']);
2727

28-
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
28+
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
2929
$loader->load('services.yml');
3030
}
3131
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)