Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.36 KB

configurable.md

File metadata and controls

30 lines (17 loc) · 1.36 KB

Source Code

Configurable

This abstract class can be used to autoconfigure an object instance When a class extends Configurable and is registered in the Core, when the core instantiates the class, the method: configure, will be called

Also, this class extends the destroyable class

Summary

Method: configure

This method is designed to be called when the Core instantiate a class, so if you need start a connection, prepare something for your application or configure, this method is for it

Return

Method: destroy

This method is designed to be called before destruction, so if you need to save, clean up or disconnect from another service, this method is for it

Return