Use 3rd party library during install package
Permalink
Hi
I have a question. I've installed 3rd party library and I use it in my package (I use autoload in on_start function)
I want to use this package during install. How can I do this ?
I've got error that class is not found.
I have a question. I've installed 3rd party library and I use it in my package (I use autoload in on_start function)
public function on_start() { require $this->getPackagePath() . '/vendor/autoload.php'; }
I want to use this package during install. How can I do this ?
I've got error that class is not found.

Have you tried:
Some options
- call $this->on_start() from the beginning of the install()
- Replicate the require at the beginning of the install()
- connect pkgAutoloaderRegistries to what needs to be loaded and its namespace.
https://documentation.concrete5.org/developers/packages/adding-custo...
- call $this->on_start() from the beginning of the install()
- Replicate the require at the beginning of the install()
- connect pkgAutoloaderRegistries to what needs to be loaded and its namespace.
https://documentation.concrete5.org/developers/packages/adding-custo...
Thank you for quick answers.