|
|
@@ -371,56 +371,53 @@ C:\WAMP\PHP\bin
|
|
|
<title>Outras Considerações de Configuração</title>
|
|
|
|
|
|
<para>
|
|
|
- If for some reason you do not want Zend Framework library inside
|
|
|
- your <property>include_path</property>, there is another option. There are
|
|
|
- two special environment variables that <filename>zf.php</filename> will
|
|
|
- utilize to determine the location of your Zend Framework
|
|
|
- installation.
|
|
|
+ Se por alguma razão você não quiser a biblioteca do Zend Framework dentro
|
|
|
+ do seu <property>include_path</property>, existe uma outra opção. Existem
|
|
|
+ duas variáveis de ambiente especiais que o <filename>zf.php</filename> irá
|
|
|
+ utilizar para determinar a localização da sua instalação do Zend Framework.
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
- The first is <constant>ZEND_TOOL_INCLUDE_PATH_PREPEND</constant>, which will
|
|
|
- prepend the value of this environment variable to the system
|
|
|
- (<filename>php.ini</filename>) <property>include_path</property> before loading
|
|
|
- the client.
|
|
|
+ A primeira é <constant>ZEND_TOOL_INCLUDE_PATH_PREPEND</constant>, que irá
|
|
|
+ preceder o valor da variável de ambiente para o sistema de (<filename>php.ini</filename>)
|
|
|
+ <property>include_path</property> <property>include_path</property> antes
|
|
|
+ da carga do cliente.
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
- Alternatively, you might want to use
|
|
|
- <constant>ZEND_TOOL_INCLUDE_PATH</constant> to completely
|
|
|
- <emphasis>replace</emphasis> the system <property>include_path</property>
|
|
|
- for one that makes sense specifically for the <command>zf</command>
|
|
|
- command line tool.
|
|
|
+ Alternativamente, você pode querer usar <constant>ZEND_TOOL_INCLUDE_PATH</constant>
|
|
|
+ para <emphasis>substituir</emphasis> completamente o sistema de
|
|
|
+ <property>include_path</property> para um que faça sentido especialmente para
|
|
|
+ a ferramente de linha de comando <command>zf</command>.
|
|
|
</para>
|
|
|
</sect4>
|
|
|
</sect3>
|
|
|
|
|
|
<sect3 id="zend.tool.extending.zend-tool-framework.providers-and-manifests">
|
|
|
- <title>Creating Providers</title>
|
|
|
+ <title>Criando Providers</title>
|
|
|
|
|
|
<para>
|
|
|
- In general, a provider, on its own, is nothing more than the shell for a
|
|
|
- developer to bundle up some capabilities they wish to dispatch with the
|
|
|
- command line (or other) clients. It is an analogue to what a
|
|
|
- "controller" is inside of your <acronym>MVC</acronym> application.
|
|
|
+ Em geral, um provider, por si só, é nada mais que o a casca para um
|
|
|
+ desenvolvedor para agrupar-se algumas das capacidades que eles desejam
|
|
|
+ enviar com um o cliente de linha de comando (ou outro). Ele é um análogo
|
|
|
+ para o que um "controller" é dentro da sua aplicação <acronym>MVC</acronym>.
|
|
|
</para>
|
|
|
|
|
|
<sect4 id="zend.tool.extending.zend-tool-framework.providers-and-manifests.loading">
|
|
|
- <title>How Zend_Tool finds your Providers</title>
|
|
|
+ <title>Como o Zend_Tool encontra seus Providers</title>
|
|
|
|
|
|
<para>
|
|
|
- By default <classname>Zend_Tool</classname> uses the BasicLoader to find all
|
|
|
- the providers that you can run. It recursivly iterates all
|
|
|
- include path directories and opens all files that end
|
|
|
- with "Manifest.php" or "Provider.php". All classes in these
|
|
|
- files are inspected if they implement either
|
|
|
- <classname>Zend_Tool_Framework_Provider_Interface</classname>
|
|
|
- or <classname>Zend_Tool_Framework_Manifest_ProviderManifestable</classname>.
|
|
|
- Instances of the provider interface make up for the real functionality
|
|
|
- and all their public methods are accessible as provider actions.
|
|
|
- The ProviderManifestable interface however requires the implementation of a
|
|
|
- method <methodname>getProviders()</methodname> which returns an array of
|
|
|
- instantiated provider interface instances.
|
|
|
+ Por padrão <classname>Zend_Tool</classname> usa o BasicLoader para encontrar
|
|
|
+ todos os providers que você pode rodar. Ele itera recursivamente todos
|
|
|
+ os diretórios do include path e abre todos os arquivos que terminam
|
|
|
+ com "Manifest.php" ou "Provider.php". Todas as classes naqueles arquivos
|
|
|
+ são inspecionadas se implementam ou <classname>Zend_Tool_Framework_Provider_Interface</classname>
|
|
|
+ ou <classname>Zend_Tool_Framework_Manifest_ProviderManifestable</classname>.
|
|
|
+ Instancias da interface do provider implementam a real funcionalidade e
|
|
|
+ todos os métodos públicos estão acessíveis como actions do provider.
|
|
|
+ A interface ProviderManifestable de qualquer forma requer a implementação de um
|
|
|
+ metodo <methodname>getProviders()</methodname> que reforna um array de
|
|
|
+ instâncias da interface provider.
|
|
|
</para>
|
|
|
|
|
|
<para>
|