Issue Bug Closed

#109826Missing documentation on correct usage of PageDoktypeRegistry

Markus Klein 05/13/26, 09:25 updated 08/11/26, 08:50

Description

Using the registry within ext_localconf.php kills propery initialization of the registry, since TcaSchema is not available at this point.

It must be used within ext_table.php

Docs do not reflect this.

Reviews 3

History 612

  1. Markus Klein commented <span data-processor="relativetime" data-value="2026-05-13T09:35:49+00:00" > 05/13/26, 09:35 </span>

    The class’s code comment actually states this, but the migration rst does not.

    Also the rector rule https://github.com/sabbelasichon/typo3-rector/blob/697aab6804258c6469f99e95d6fa9d73eae814c7/rules/TYPO312/v0/UsePageDoktypeRegistryRector.php migrates this in any place anywhere in the code.

    Formerly it was not problem to have PAGE_TYPES definition in ext_localconf.

    Albeit this API is deprecated again with v14, I’d opt to update the docs and maybe also the rector rule, to avoid such a pitfall.

  2. Gerrit Code Review pushed patch set 1 for main to change 94087 status Accepted Under Review <span data-processor="relativetime" data-value="2026-05-13T09:39:55+00:00" > 05/13/26, 09:39 </span>

  3. Markus Klein commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-05-13T12:35:12+00:00" > 05/13/26, 12:35 </span>

    Applied in changeset commit:9db9ab10cbcc3e2f43567bfe20208e7cabf4e8c0.