rosteleset / SmartYard-Server

Автономная серверная часть для быстрого запуска домофонии и видеонаблюдения для мобильных приложений SmartYard (Теледом) Fully autonomous server part for quick launch of your intercom and video surveillance service
GNU General Public License v3.0
15 stars 16 forks source link

Add onConstruct method on backends #20

Closed mhz-tamb closed 11 months ago

mhz-tamb commented 11 months ago

This will allow, if necessary, to perform additional actions of initializing the descendants of the backend object without overriding the constructor and avoid confusion of constructor arguments

class my extends backend
{
    public function onConstruct()
    {
        // Some additional initializations
    }
}
mmikel commented 11 months ago

no need, the constructor is more than enough