You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would have saved me a significant amount of time in development if I had known that I could supply a bootstrap file for workers. The documentation AND ERROR MESSAGES use "MUST be loadable by the composer class loader", which is not true. That guidance caused me to go through hoops when a simple one-line bootstrap file importing my autoloader would have sufficed.
Instead, all I had to do was:
$workerFactory = new ContextWorkerFactory(__DIR__ . '/../Task/bootstrap.php');
$this->workerPool ??= new ContextWorkerPool(50, $workerFactory);
I shouldn't have to stumble upon an important feature like that while reverse-engineering your library for another reason.
The text was updated successfully, but these errors were encountered:
It would have saved me a significant amount of time in development if I had known that I could supply a bootstrap file for workers. The documentation AND ERROR MESSAGES use "MUST be loadable by the composer class loader", which is not true. That guidance caused me to go through hoops when a simple one-line bootstrap file importing my autoloader would have sufficed.
Instead, all I had to do was:
I shouldn't have to stumble upon an important feature like that while reverse-engineering your library for another reason.
The text was updated successfully, but these errors were encountered: