Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41978 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27597 invoked from network); 17 Nov 2008 13:51:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Nov 2008 13:51:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=sv_forums@fmethod.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sv_forums@fmethod.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fmethod.com from 69.16.228.148 cause and error) X-PHP-List-Original-Sender: sv_forums@fmethod.com X-Host-Fingerprint: 69.16.228.148 unknown Linux 2.4/2.6 Received: from [69.16.228.148] ([69.16.228.148:39068] helo=host.fmethod.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/B8-17095-7E671294 for ; Mon, 17 Nov 2008 08:51:36 -0500 Received: from [83.228.56.37] (port=2393 helo=pc) by host.fmethod.com with esmtpa (Exim 4.69) (envelope-from ) id 1L24Vo-0004Gt-Th for internals@lists.php.net; Mon, 17 Nov 2008 07:51:33 -0600 Message-ID: <121636812F95439584D51807A15D4CEB@pc> To: "PHP internals" References: <49215237.9070202@grudl.com> Date: Mon, 17 Nov 2008 15:51:19 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-2"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.fmethod.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fmethod.com Subject: Re: [PHP-DEV] Re: Namespace resolution rules has been changed? From: sv_forums@fmethod.com ("Stan Vassilev | FM") > > Zend_Acl ==> Zend_Acl_Resource_Interface, Zend_Acl_Role_Interface, > > Zend_Acl_Role_Registry, Zend_Acl_Assert_Registry... > > > > Regard, Stan Vassilev > > > Stan, ZF doesn't use namespaces yet. This is not namespaced code. > Namespaced code requires different convention > (http://framework.zend.com/wiki/display/ZFPROP/Naming+conventions+for+2.0+-+Matthew+Ratzloff). > > In namespaced code there cannot be class Interface in namespace > Zend\Acl\Role. There must be class RoleInterface in Zend\Acl namespace. > Similary class Zend_Acl become Acl in Zend\Acl namespace. So look at the > code with namespace-eyes. Classes Zend_Acl, Zend_Acl_Resource_Interface, > Zend_Acl_Role_Interface... will exist in one namespace. I've checked that wiki page before, and I'm following with interest how they end up naming those, but that changes nothing. Today, Zend_Acl uses Zend_Acl_Resource_Interface. Tommorow, Zend\Acl uses Zend\Acl\ResourceInterface (or similar). The fact is, PHP frameworks and especially Zend use plenty of factories and facade classes, which by definition reach into inner-more classes and provide simplified paradigm to the "outside world". The Interface and Exception classes won't stay like this, but they'll still be inside a subnamespace. Regards, Stan Vassilev