-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
composer dependency analyser
#140
Conversation
0c0667f
to
9acd73a
Compare
9acd73a
to
98bd58b
Compare
// Assertions | ||
assert(isset($this) && $this instanceof Initializer); | ||
assert(isset($options) && $options instanceof CliOptions); | ||
assert(isset($composerJson) && $composerJson instanceof ComposerJson); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All this wont be available after shipmonk-rnd/composer-dependency-analyser#102. Instead, you can:
- get
$cwd
just bygetcwd()
- get the given path to
composer.json
bygetopt('', ['composer-json:'])['composer-json']
- parse autoload paths the same way you do for
exclude-from-classmap
- I'll think if I cannot add better support to override dev paths in this config so that you would not need to do
disableComposerAutoloadPathScan
(and re-adding those byaddPathToScan
).
- I'll think if I cannot add better support to override dev paths in this config so that you would not need to do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically any class or method not mentioned in readme (which is just Configuration
and ErrorType
) is not considered public API (as CDA is mainly a CI tool) and may change in future, so it is better to avoid using those.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, agree. But I will merge it as is (because need it for #117) and update a bit later.
to check dependencies.