Yurii

Results 92 comments of Yurii

Working and tested code: ``` /** * Pass the DI to the instance if it implements * \Phalcon\Di\InjectionAwareInterface */ if typeof instance == "object" { if instance instanceof InjectionAwareInterface &&...

Sorry. This will not work: many Di::getDefault() in the Phalcon source code. p.s. Only if the code is completely ugly: ``` /** * Pass the DI to the instance if...

@sergeyklay I think that this is impossible. The current Phalcon architecture implies a single Di container due to static method calls. For example, Phalcon\Mvc\Model::find() calls Phalcon\Mvc\Model::getPreparedQuery(), which calls Di::getDefault(): ```...

@niden Thank you for the answer! We will wait for the implementation of this functionality :)

@diplopito Almost the same as namespace. I wrote an extension for Di to access the parent Di. It looks something like this: ``` $di = new Di(); $di->setShared('goodService', function() {...

I was able to update one device to version 63 using a custom index file: ```json [ { "fileVersion": 4145667, "fileSize": 200343, "manufacturerCode": 4129, "imageType": 18, "sha512": "e1eb7be7d7fc49caff5e37c03165b09b2087314018a4e9da1d6362df5359141c81ce61872a95bd5ae0a9dacbd270293bed3e564100b65d513c91adad3e093d38", "url": "https://github.com/Koenkk/zigbee-OTA/raw/c0234dd23faa5ffd03660698723254350cd6cff1/images/Legrand/1021-0012-003f4203-NLT-63.zigbee",...

Замечено, что не всегда происходит фактическая смена трека после окончания текущего и/или при переключении next/prev. Решение - проверять state id даже в случае, если сейчас что-то воспроизводится: ```python if self.sync_state:...

> 1\. Функции мьютить внешний плеер при общении с Алисой в принципе не было. Мьютилась сама колонка с Алисой во время стриминга. А при общении с ней - размьючивалась. У...