Feature #39088
Add a sgnalslot before compilation
Status: | New | Start date: | 2012-07-19 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | Core | |||
Target version: | - | |||
PHP Version: | Complexity: | |||
Has patch: | No |
Description
I think it would be nice to have a signalslot before compilation.
Currently there is only a signalslot when compilation is finished successfully.
The compileCommand in the CoreCommandController could look like this:
public function compileCommand($force = FALSE) { $objectConfigurationCache = $this->cacheManager->getCache('FLOW3_Object_Configuration'); if ($force === FALSE) { if ($objectConfigurationCache->has('allCompiledCodeUpToDate')) { return; } } $this->emitStartCompilationRun(); //THIS IS NEW $classesCache = $this->cacheManager->getCache('FLOW3_Object_Classes'); $this->proxyClassCompiler->injectClassesCache($classesCache); $this->aopProxyClassBuilder->injectObjectConfigurationCache($objectConfigurationCache); $this->aopProxyClassBuilder->build(); $this->dependencyInjectionProxyClassBuilder->build(); $classCount = $this->proxyClassCompiler->compile(); $objectConfigurationCache->set('allCompiledCodeUpToDate', TRUE); $classesCacheBackend = $classesCache->getBackend(); if ($this->bootstrap->getContext()->isProduction() && $classesCacheBackend instanceof FreezableBackendInterface) { $classesCache->getBackend()->freeze(); } $this->emitFinishedCompilationRun($classCount); }
In our solution we wan't to do some stuff before the flow3 compiler kicks in
History
#1 Updated by Karsten Dambekalns about 3 years ago
- Target version set to 2.0 beta 1
#2 Updated by Karsten Dambekalns over 2 years ago
- Target version deleted (
2.0 beta 1)