When downloading an external private repository from bitbucket, the autoload of the package is not generated, namely the file in the root of the myFile.php repository.
composer.json:
{ "require": { "MyVendor/myRepo": "dev-master" }, "repositories":[ { "type":"package", "package":{ "name":"MyVendor/myRepo", "version": "dev-master", "source":{ "type":"git", "url":"git@bitbucket.org:MyVendor/myRepo.git", "reference":"dev-master" }, "autoload": { "files": ["myFile.php"] } } } ] }