[FLOW3-general] AOP problem

Federico Bernardin federico at bernardin.it
Thu Dec 17 16:33:11 CET 2009


I move my aspect class from Aspect folder inside my package to FLOW3/Persistence/Aspect and I copy the content of file DirtyMonitoring but I change the name of the class with SecurityAspect. I debug the behaviour of framework insertimng inside framework.php (AOP) these lines:
	protected function buildAspectContainer($aspectClassName) {
		echo($aspectClassName."-------\n");
		if (!$this->reflectionService->isClassReflected($aspectClassName)) return FALSE;
		echo($aspectClassName."-------\n");
		if (!$this->reflectionService->isClassTaggedWith($aspectClassName, 'aspect')) return FALSE;		
		echo($aspectClassName."\n\n");
The result is very strange:
The first time I load the page of my controller the system writes three times my aspect class, but it prints only two times when I reload the page the following times. I think there is a type of cache, but why does this behaviour happen only with my class and not with DirtyMonitoring?

Thx
Federico



More information about the FLOW3-general mailing list