svn: /phpdoc/en/trunk/reference/yaf/ appconfig.xml yaf_loader/registerlocalnamespace.xml

From: Date: Thu, 28 Feb 2013 05:53:22 +0000
Subject: svn: /phpdoc/en/trunk/reference/yaf/ appconfig.xml yaf_loader/registerlocalnamespace.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-11050@lists.php.net to get a copy of this message
laruence Thu, 28 Feb 2013 05:53:22 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=329592 Log: more infos about yaf loader Changed paths: U phpdoc/en/trunk/reference/yaf/appconfig.xml U phpdoc/en/trunk/reference/yaf/yaf_loader/registerlocalnamespace.xml Modified: phpdoc/en/trunk/reference/yaf/appconfig.xml =================================================================== --- phpdoc/en/trunk/reference/yaf/appconfig.xml 2013-02-28 04:15:22 UTC (rev 329591) +++ phpdoc/en/trunk/reference/yaf/appconfig.xml 2013-02-28 05:53:22 UTC (rev 329592) @@ -232,7 +232,9 @@ </term> <listitem> <para> - Introduced in Yaf 2.1.6 + Alias of <link + linkend="configuration.yaf.library">application.library</link>. Introduced + in Yaf 2.1.6 </para> </listitem> </varlistentry> Modified: phpdoc/en/trunk/reference/yaf/yaf_loader/registerlocalnamespace.xml =================================================================== --- phpdoc/en/trunk/reference/yaf/yaf_loader/registerlocalnamespace.xml 2013-02-28 04:15:22 UTC (rev 329591) +++ phpdoc/en/trunk/reference/yaf/yaf_loader/registerlocalnamespace.xml 2013-02-28 05:53:22 UTC (rev 329592) @@ -11,11 +11,35 @@ &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>void</type><methodname>Yaf_Loader::registerLocalNamespace</methodname> - <methodparam choice="opt"><type>mixed</type><parameter>prefix</parameter></methodparam> + <methodparam><type>mixed</type><parameter>prefix</parameter></methodparam> </methodsynopsis> <para> - register local class prefix + Register local class prefix name, <classname>Yaf_Loader</classname> search + classes in two library directories, the one is configured via <link + linkend="configuration.yaf.library">application.library.directory</link>(in + application.ini) which is called local libraray directory; the other is + configured via <link linkend="ini.yaf.library">yaf.library</link> (in + php.ini) which is callled global library directory, since it can be shared + by many applications in the same server. </para> + <para> + When an autloading is trigger, <classname>Yaf_Loader</classname> will + determine which library directory should be searched in by exame the prefix + name of the missed classname. + + If the prefix name is registered as a localnamespack then look for it in + local library directory, otherwise look for it in global library directory. + <note> + <para> + If yaf.library is not configured, then the global library directory is + assumed to be the local library directory. in that case, all autoloading + will look for local library directory. + + But if you want your Yaf application be strong, then always register your + own classes as local classes. + </para> + </note> + </para> </refsect1> <refsect1 role="parameters">

« previous php.doc.cvs (#11050) next »