User tests: Successful: Unsuccessful:
Pull Request for Issue #41835 .
Removes the contenthistory alias from the b/c plugin
Activate b/c plugin
create an article
check versions
2 times the error message
Warning
: Cannot declare class \joomla\cms\table\contenttype, because the name is already in use in
/web/darmplus.verlauf.at/libraries/loader.php
on line
576
no error message
currently with this pr only one time
Category | ⇒ | Front End Plugins |
Status | New | ⇒ | Pending |
have to look at it later
I think we can remove whole section
joomla-cms/plugins/behaviour/compat/src/classmap/classmap.php
Lines 73 to 78 in 8f8923d
It does not make any sense, because the class is case insensetive:
class Foo { }
class_alias('Foo', 'Bar');
var_dump(new bar);
Also when removed, the following still works:
var_dump(Table::getInstance('contenttype'));
var_dump(Table::getInstance('ContentType'));
@wilsonge can you confirm, or maybe I missed something
btw, this does not work anyway:
new Joomla\CMS\Table\Contenttype(Factory::getDbo()); // Throws class not found error
new Joomla\CMS\Table\ContentType(Factory::getDbo()); // Works
new JTableContenttype(Factory::getDbo()); // Works
And when change order:
new Joomla\CMS\Table\ContentType(Factory::getDbo()); // Works
new JTableContenttype(Factory::getDbo()); // Works
new Joomla\CMS\Table\Contenttype(Factory::getDbo()); // Works
Joomla 4 and 5
I thinks it's about the class override in the container maybe?
I do not think that it related to container in any way
Labels |
Added:
PR-5.0-dev
|
I now removed the other case changed class aliases too.
@hendrikbehncke can you please test this pull request.
no more warning with the pr
I have tested this item ✅ successfully on 81971c7
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-09-22 18:28:56 |
Closed_By | ⇒ | HLeithner |
thanks
hmm the solution seems not to be right... because this would fail
Table::getInstance()