Feature #39088

Add a sgnalslot before compilation

Added by Kobbe van Daatselaar over 9 years ago. Updated almost 9 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Core
Target version:
-
Start date:
2012-07-19
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

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

#1

Updated by Karsten Dambekalns over 9 years ago

  • Target version set to 2.0 beta 1
#2

Updated by Karsten Dambekalns almost 9 years ago

  • Target version deleted (2.0 beta 1)

Also available in: Atom PDF