Skip to content

Commit

Permalink
Fix deprecated log messages for TYPO3 v10
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Aug 27, 2020
1 parent 6b633b7 commit 5cf1913
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion Classes/DataSet/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public function getTca(string $tableName): array
],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
'config' => [
'type' => 'select',
Expand Down
3 changes: 2 additions & 1 deletion Classes/Loader/ContentObjects.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use HDNET\Autoloader\Annotation\EnableRichText;
use HDNET\Autoloader\Annotation\NoHeader;
use HDNET\Autoloader\Annotation\WizardTab;
use HDNET\Autoloader\Controller\ContentController;
use HDNET\Autoloader\Loader;
use HDNET\Autoloader\LoaderInterface;
use HDNET\Autoloader\Service\NameMapperService;
Expand Down Expand Up @@ -252,7 +253,7 @@ public function loadExtensionConfiguration(Loader $loader, array $loaderInformat

if ($loadPlugin) {
$loadPlugin = false;
ExtensionUtility::configurePlugin('HDNET.autoloader', 'Content', ['Content' => 'index'], ['Content' => '']);
ExtensionUtility::configurePlugin('autoloader', 'Content', [ContentController::class => 'index'], [ContentController::class => '']);
if (!$csc) {
$typoScript .= 'tt_content = CASE
tt_content.key.field = CType';
Expand Down
7 changes: 4 additions & 3 deletions Classes/Loader/Plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ public function prepareLoader(Loader $loader, int $type): array

$reflectionClass = new \ReflectionClass($controllerName);

$controllerKey = str_replace('/', '\\', $controller);
$controllerKey = str_replace('Controller', '', $controllerKey);
//$controllerKey = str_replace('/', '\\', $controller);
//$controllerKey = str_replace('Controller', '', $controllerKey);
$controllerKey = $controllerName;

foreach ($reflectionClass->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) {
$configuration = $annotationReader->getMethodAnnotation($method, Plugin::class);
Expand Down Expand Up @@ -92,7 +93,7 @@ public function loadExtensionTables(Loader $loader, array $loaderInformation): v
*/
public function loadExtensionConfiguration(Loader $loader, array $loaderInformation): void
{
$prefix = $loader->getVendorName() . '.' . $loader->getExtensionKey();
$prefix = $loader->getExtensionKey();
foreach ($loaderInformation as $key => $information) {
ExtensionUtility::configurePlugin($prefix, $key, $information['cache'], $information['noCache']);
}
Expand Down
3 changes: 0 additions & 3 deletions Classes/Service/SmartObjectInformationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,6 @@ public function getTcaInformation($modelClassName)
'searchFields' => implode(',', $searchFields),
'iconfile' => IconUtility::getByModelName($modelClassName, true),
],
'interface' => [
'showRecordFieldList' => implode(',', array_keys($baseTca['columns'])),
],
'types' => [
'1' => ['showitem' => implode(',', $showitem)],
],
Expand Down

0 comments on commit 5cf1913

Please sign in to comment.