mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Use imports instead of FQNs
This commit is contained in:
parent
f63b6d7207
commit
5629215ce4
179 changed files with 792 additions and 597 deletions
|
@ -14,6 +14,11 @@ return static function (RectorConfig $rectorConfig): void {
|
|||
$rectorConfig->symfonyContainerXml(__DIR__ . '/var/cache/dev/App_KernelDevDebugContainer.xml');
|
||||
$rectorConfig->symfonyContainerPhp(__DIR__ . '/tests/symfony-container.php');
|
||||
|
||||
//Import class names instead of using fully qualified class names
|
||||
$rectorConfig->importNames();
|
||||
//But keep the fully qualified class names for classes in the global namespace
|
||||
$rectorConfig->importShortClasses(false);
|
||||
|
||||
$rectorConfig->paths([
|
||||
__DIR__ . '/config',
|
||||
__DIR__ . '/public',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue