Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @var ClassLoader $loader
*/
$loader = require __DIR__.'/../vendor/autoload.php';
Copy link

@livsi livsi Apr 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It breaks down output of hints in IDE

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes indeed, as the vendors are not anymore on the host, but only in the container. These commits serve as a test for problems with Docker on Mac, so you may not use it.
If you keep the vendors in the container (like in this PR), you may temporarily change the composer.json file to make vendors get installed in the standard dir as well, so that your IDE can see the files.

$loader = require '/dev/shm/symfony_docker_test/vendor/autoload.php';

AnnotationRegistry::registerLoader([$loader, 'loadClass']);

Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,8 @@
"incenteev-parameters": {
"file": "app/config/parameters.yml"
}
},
"config": {
"vendor-dir": "/dev/shm/symfony_docker_test/vendor"
}
}