Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46081 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80253 invoked from network); 18 Nov 2009 16:28:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2009 16:28:19 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.227 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.220.227 mail-fx0-f227.google.com Received: from [209.85.220.227] ([209.85.220.227:49638] helo=mail-fx0-f227.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/BB-16241-1A0240B4 for ; Wed, 18 Nov 2009 11:28:18 -0500 Received: by fxm27 with SMTP id 27so1401364fxm.23 for ; Wed, 18 Nov 2009 08:28:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=P65DltOa9buWT0+puJVDtrItEAjgMVXF+WCIcbR7Thg=; b=ZlYHBuop2shilyWNAyfxdFek0ZZrJLCl+Xx9uEQcD3qJ2vef+Pm9BBaA5/94l8y6nX zMjm+PHAS9HDbX9CqRLKpsrPXXsPYml58NNgATT93iap+JaNjYNGINbUjG2XfqAF9Mfw Wos2jzQGhgL7jZmK6NNl4+/eVwJIcXjqUhEIQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=vlZnImNNEmz30KyuZKhQThCPdRga/kzXzzNZzhBYrdgxRxOoGsWSiUK/po4Q5k28Vx WKNrywXf7WglEaaqsfeTnqGLd0/FSc0inwlYWoukcNPMfxFLi4C96Hdl0QPAA1ABgoj1 BR3jK82tyZviQmaw15bCJBEZlx8afdSalLymY= Received: by 10.216.89.130 with SMTP id c2mr337956wef.44.1258561694359; Wed, 18 Nov 2009 08:28:14 -0800 (PST) Received: from nirvana.lan ([93.185.190.227]) by mx.google.com with ESMTPS id p10sm508804gvf.29.2009.11.18.08.28.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Nov 2009 08:28:12 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii In-Reply-To: Date: Wed, 18 Nov 2009 19:27:54 +0300 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <010DBFFB-DC99-4E1B-8597-BA18BD8C800E@gmail.com> References: To: Robert Lemke X-Mailer: Apple Mail (2.1077) Subject: Re: [PHP-DEV] RFC: Custom Factories (SPL) From: indeyets@gmail.com (Alexey Zakhlestin) On 18.11.2009, at 19:06, Robert Lemke wrote: > Hi folks, >=20 > after discussing the idea with various PHP developers I now felt safe = enough that it's not a completely stupid idea to post an RFC for it. The = idea is to add support the registration of custom factories which are = responsible for instantiating certain classes. >=20 > Here is the first draft of my RFC: > http://wiki.php.net/rfc/customfactories >=20 > I suggest that we first discuss the implications and usefulness of = this feature. In a second step I'd need to find some skilled internals = wizard who can implement it, because not being a C developer myself, all = I can offer is making suggestions and fine coffee. >=20 > Looking forward to hearing your comments! So, from the high-level point of view, you want to introduce mechanism, = which would allow instantiate objects by their interface, instead of = their class-name. And this mechanism should use user-provided rules for choosing = appropriate implementation.=