Преглед изворни кода

ZF-6460: update performance guide examples showing autoloading

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@15246 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew пре 16 година
родитељ
комит
dc943a3d13
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      documentation/manual/en/ref/performance-classloading.xml

+ 4 - 4
documentation/manual/en/ref/performance-classloading.xml

@@ -214,8 +214,8 @@ set_include_path(implode(PATH_SEPARATOR, $paths));
 
             <programlisting role="shell"><![CDATA[
 % cd path/to/ZendFramework/library
-% find . -name '*.php' -print0 | xargs -0 \
-  sed --regexp-extended --in-place 's/(require_once)/\/\/ \1/g'
+% find . -name '*.php' -not -wholename '*/Loader/Autoloader.php -print0 | \
+  xargs -0 sed --regexp-extended --in-place 's/(require_once)/\/\/ \1/g'
 ]]></programlisting>
 
             <para>
@@ -235,8 +235,8 @@ set_include_path(implode(PATH_SEPARATOR, $paths));
             </para>
 
             <programlisting role="php"><![CDATA[
-require_once 'Zend/Loader.php'; // one require_once is still necessary
-Zend_Loader::registerAutoload();
+require_once 'Zend/Loader/Autoloader.php';
+Zend_Loader_Autoloader::getInstance();
 ]]></programlisting>
         </sect3>
     </sect2>