[TYPO3-team-core-v5] Events (was: Configuration switch for enabling / disabling security)
Robert Lemke
robert at typo3.org
Thu Dec 11 16:57:26 CET 2008
Hi Andi,
Am 11.12.2008 um 16:44 schrieb Andreas Förthner:
> exactly, for now it only disables the function calls to the security
> framework, not the dependencies. I'm not sure, if custom factories
> can change that at all. Maybe I didn't understand that, but if I
> have a custom security factory, the factory is again a dependency to
> the security package. As soon as we use DI with type hints or create
> objects of another package, we create a dependency. I don't see a
> solution for that problem right now. Of course we only create
> dependencies to interfaces, which is quite flexible, but we create
> dependencies. That again means we cannot leave the dependant
> interfaces of the security package away, as this will break on PHP
> level.
yes.
>> The goal should be that there's no actual security code in the MVC
>> framework. Instead we should use some pre / post processing mechanism
>> or other hooks for invoking the security mechanisms.
>
> What exactly is that about ?! Perhaps we could trigger an event in
> the dispatcher, and the security framework just registers an event
> handler, was that your idea?!
yepp.
> With that we could completely decouple all classes and interfaces,
> because we just call a generic event handler. But a good event
> framework is far from beeing final in FLOW3, eh?
I currently need events as well (for the File Alteration Monitoring)
and although I wanted to postpone this a little more, it seems like we
have enough reasons now to start with the even framework already.
> What do you think? Any other ideas in mind?
Events sound like the best idea.
I'll go for some brainstorming ...
Cheers,
robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.netfielders.de/pipermail/typo3-team-core-v5/attachments/20081211/abdebaed/attachment.pgp
More information about the TYPO3-team-core-v5
mailing list