-
Notifications
You must be signed in to change notification settings - Fork 82
Dependency injection
While you're building your classes for automatic discovery, many of these classes will require access to the core's internal services.
If your class depends on one of our services, all you have to do is add it to your constructor and an instance will be passed in that you can work with.
The following services are available for insertion into your constructors:
Contains a list of various application data paths
Mounts and unmounts iso files
Get access to the core's json serializer.
Create your own named logger. Log entries will appear in the application log file and will be prefixed with the name of the logger for ease of reading.
Queue, execute and cancel scheduled tasks
Read and write configuration settings (and the above app paths)
Get access to the core's xml serializer.