Restful
Restful copied to clipboard
Nette 2.3 and composer with optimized autoloader crashes on missing interface
Current version of Nette (2.3.0) has feature which cooperates with Composer.
See: http://api.nette.org/2.3.0/source-Bridges.ApplicationDI.ApplicationExtension.php.html#131
However, command 'composer install --optimize-autoloader' causes adding an extra classes from Drahak/Restful to vendor/composer/autoload_classmap.php
And during construction Nette DI container there is a fatal error (Interface 'Drahak\OAuth2\Application\IOAuthPresenter' not found).
Simple workaround: nette: application: scanComposer: false
to config.neon.
:+1:
:+1:
This isn't the root of the issue OAuth2Presenter is implementing Drahak\OAuth2\Application\IOAuthPresenter which is listed as dev dependency.
:+1:
:+1:
IMHO it should be fixed to work also without turnoff scancomposer. But what is the best solution? Remove OAuth2Presenter and move it tu drahak/oauth2? Add IOauthPresenter here, or move drahak/oauth2 to require dependency?