.. include:: /Includes.rst.txt .. _configuration-api: ================= Configuration API ================= In order to access the :ref:`extension configuration `, a slim PHP API exists. Each configuration option is accessible by an appropriate class property. .. versionchanged:: 4.2.0 Several class methods were converted to class properties and deprecated in :ref:`version 4.2.0 `. Calling those methods will be possible until version 5.0 of the extension, but deprecation notices will be logged on every method call. .. php:namespace:: EliasHaeussler\Typo3Warming\Configuration .. php:class:: Configuration API to access all available extension configuration options. .. php:attr:: crawlerClass Get the configured :ref:`crawler class `. To access the instantiated crawler, call the :php:`getCrawler` method instead. .. php:attr:: crawlerOptions Get the configured :ref:`crawler options `. .. php:attr:: verboseCrawlerClass Get the configured :ref:`verbose crawler class `. To access the instantiated crawler, call the :php:`getVerboseCrawler` method instead. .. php:attr:: verboseCrawlerOptions Get the configured :ref:`verbose crawler options `. .. php:attr:: parserOptions Get the configured :ref:`parser options `. .. php:attr:: clientOptions Get the configured :ref:`client options `. .. php:attr:: limit Get the configured :ref:`crawler limit `. .. php:attr:: excludePatterns Get the configured :ref:`exclude patterns `. .. php:attr:: crawlingStrategy Get the configured :ref:`crawling strategy `. .. php:attr:: enabledInPageTree Check whether cache warmup from :ref:`page tree ` is enabled. .. php:attr:: supportedDoktypes Get all :ref:`doktypes ` that support cache warmup from page tree. .. php:attr:: enabledInToolbar Check whether cache warmup from :ref:`toolbar ` is enabled. .. php:method:: getCrawler() Get the configured :ref:`crawler `. :returntype: :php:`\EliasHaeussler\CacheWarmup\Crawler\Crawler` .. php:method:: getVerboseCrawler() Get the configured :ref:`verbose crawler `. :returntype: :php:`\EliasHaeussler\CacheWarmup\Crawler\VerboseCrawler` .. php:method:: getUserAgent() Get the calculated user-agent. .. deprecated:: 4.2.0 Call :php:`\EliasHaeussler\Typo3Warming\Http\Message\Request\RequestOptions::getUserAgent` instead. See :ref:`migration guide ` for more information. :returntype: :php:`string` .. seealso:: View the sources on GitHub: - `Configuration `__