[TYPO3-team-core-v5] RFC: ComponentFactory

Robert Lemke robert at typo3.org
Tue Sep 30 15:43:41 CEST 2008


Hi Malte,

Am 29.09.2008 um 21:55 schrieb Karsten Dambekalns:

> Malte Jansen wrote:
>> IMO the ComponentFactory should also have a function
>> isComponentRegistered(), so it's pretty easy to make your own
>
> Well, a factory creates things. Is checking about registered stuff in
> it's domain? Quick, before Roberts reads this! ;)

Exactly: Factory = make things, Manager = manage things

In our case the manager has a built-in registry, hence the  
is*Registered()
method. You might even argue that "getComponent" is not really a nice
name for a factory method, but hey ...

Anyway, Malte, I support your idea of adding some way to register
custom factories, but not in this way.

I have something else in mind, some way that PHP supports this natively.
I plan to write an RFC for the PHP devs and see if I can find someone
with karma to propose that feature in the php-internals list.

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/20080930/b083297d/attachment.pgp 


More information about the TYPO3-team-core-v5 mailing list