Since I saw the label question, I thought it was allowed to ask questions here. If asking questions is not allowed on the repo, please feel free to close this ticket and refer to the question of StackOverflow if you have the time.
Context
- Set up a custom Composer package, say,
custom/foo at /opt/foo.
- Set up an empty Drupal installation at
/opt/drupal.
- Set up a custom repository and install the custom project as a symlink (for development):
"require": {
"custom/foo": "*"
}
...
"repositories: "{
"type": "path",
"url": "/opt/foo",
"options": {
"symlink": true
}
}
- Run
(new DrupalFinderComposerRuntime())->getComposerRoot()
Expectation
The path to the Drupal project should be returned, i.e. /opt/drupal
Reality
The path to the Package's root is returned, i.e. /opt/foo
References
Since I saw the label question, I thought it was allowed to ask questions here. If asking questions is not allowed on the repo, please feel free to close this ticket and refer to the question of StackOverflow if you have the time.
Context
custom/fooat/opt/foo./opt/drupal.(new DrupalFinderComposerRuntime())->getComposerRoot()Expectation
The path to the Drupal project should be returned, i.e.
/opt/drupalReality
The path to the Package's root is returned, i.e.
/opt/fooReferences