Ilya Sabelnikov

Results 4 comments of Ilya Sabelnikov

Please, don't do it (i.e. put enums into singletons). Enums are a [value objects](https://martinfowler.com/bliki/ValueObject.html), and this is bad idea to have singletons for value object. In normal languages to compare...

Because file state is cached during single PHP request... I would add a `clearstatcache();` call here: File: [sfApplicationConfiguration.class.php#L113](https://github.com/LExpress/symfony1/tree/master/lib/config/sfApplicationConfiguration.class.php#L113) ``` php $this->dispatcher->connect('autoload.filter_config', array($this, 'filterAutoloadConfig')); sfAutoload::getInstance()->register(); if ($this->isDebug()) { clearstatcache(); // HERE...

Or somewhere here: File: [sfAutoload.class.php#L132](/LExpress/symfony1/tree/master/lib/autoload/sfAutoload.class.php#L132) ``` php if (file_exists($configuration->getConfigCache()->getCacheName('config/autoload.yml'))) { unlink($configuration->getConfigCache()->getCacheName('config/autoload.yml')); clearstatcache(); // HERE } ```