This commit is contained in:
TomasVotruba 2017-11-04 13:27:36 +01:00
parent 25e9723190
commit 0cc75d58be
2 changed files with 7 additions and 4 deletions

View File

@ -5,9 +5,12 @@
* "composer create-project ..." and "composer require" installation.
*/
$possibleAutoloadPaths = [
__DIR__ . '/../vendor/autoload.php', // repository
__DIR__ . '/../vendor/autoload.php', // composer create-project
__DIR__ . '/../../../../vendor/autoload.php', // composer require
// repository
__DIR__ . '/../vendor/autoload.php',
// composer create-project
__DIR__ . '/../vendor/autoload.php',
// composer require
__DIR__ . '/../../../../vendor/autoload.php',
];
foreach ($possibleAutoloadPaths as $possibleAutoloadPath) {

View File

@ -4,7 +4,7 @@ services:
Rector\:
resource: '../../src'
exclude: '../../src/{Node/Attribute.php,Rector/Contrib,Rector/Dynamic,Rector/MagicDisclosure}'
exclude: '../../src/{Node/Attribute.php,Rector/Contrib,Rector/Dynamic,Rector/MagicDisclosure,Testing}'
# autowire by interface
Rector\Contract\Parser\ParserInterface: