Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

      (Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

tuning-for-production.md

Zuletzt modifiziert: 09.10.2024, 12:56 - Dateigröße: 993.00 Bytes


 01  ## Tuning the ProxyManager for production
 02   
 03  By default, all proxy factories generate the required proxy classes at runtime.
 04   
 05  Proxy generation causes I/O operations and uses a lot of reflection, so be sure to have
 06  generated all of your proxies **before deploying your code on a live system**, or you
 07  may experience poor performance.
 08   
 09  You can configure ProxyManager so that it will try autoloading the proxies first.
 10  Generating them "bulk" is not yet implemented:
 11   
 12  ```php
 13  $config = new \ProxyManager\Configuration();
 14  $config->setProxiesTargetDir(__DIR__ . '/my/generated/classes/cache/dir');
 15   
 16  // then register the autoloader
 17  spl_autoload_register($config->getProxyAutoloader());
 18  ```
 19   
 20  Generating a classmap with all your proxy classes in it will also work perfectly.
 21   
 22  Please note that all the currently implemented `ProxyManager\Factory\*` classes accept
 23  a `ProxyManager\Configuration` object as optional constructor parameter. This allows for
 24  fine-tuning of ProxyManager according to your needs.
 25