Skip to main navigation Skip to main content Skip to page footer

ext_localconf.php

php
 1<?php
 2declare(strict_types = 1);
 3
 4use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
 5use Theolangstraat\Phiki\Controller\CodeSnippetController;
 6
 7defined('TYPO3') or die();
 8
 9ExtensionUtility::configurePlugin(
10    // extension name, matching the PHP namespaces (but without the vendor)
11    'Phiki',
12    // arbitrary, but unique plugin name (not visible in the backend)
13    'Snippet',
14    // all actions
15    [
16        CodeSnippetController::class => 'show',
17    ],
18    // non-cacheable actions
19    [],
20    ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT,
21);
22