tpunt / phactor

An implementation of the Actor model for PHP
BSD 3-Clause "New" or "Revised" License
61 stars 5 forks source link

ActorSystem and autoloading #9

Open tpunt opened 6 years ago

tpunt commented 6 years ago

To perform autoloading in the actor system, an autoloader should be accepted by the actor system constructor (I don't see other cleaner ways to do this).

The autoloader (for now) could just be a file name as the second parameter to ActorSystem::__construct, where the file will be executed by the individually spawned threads on actor system startup.