5.7 Third Party Library "require":???
Permalink5.7 Documentation for third party libraries are now delivered by the Composer Dependency Manager.
I have followed the steps listed for using Composer to add the library and I have a functioning Add-on. My problem is how Composer adds "require": statements throughout the code beginning with autoload . php which of course fails concrete5 :: Linter.
I do not understand why documentation says use Composer but the results from it are not accepted.
Any help on this would be appreciated.
But there is a link in the comment posted by Antti Hukkanen that had a controller file example that used -
"use Illuminate\Filesystem\Filesystem;"
Using that, I did an on start method that uses a Filesystem call -
$filesystem = new Filesystem(); $filesystem->getRequire(__DIR__ . 'my_file');
Thanks for leading me in the right direction.
This blog entry and comment might be helpful:
http://andrewembler.com/2015/08/q-using-composer-concrete5-package/...