Version: 3.2.9
Bug Description
AccessPolicy is broken when subcomponent is created in createComponent() method
Steps To Reproduce
protected function createComponentProductListFilters(): ProductListFiltersControl
{
$control = $this->productListFiltersControlFactory->create();
/** @var ProductListPriceFilterControl $priceFilterControl */
$priceFilterControl = $control->getComponent('price');
$priceFilterControl->setShortcuts($this->priceFilterShortcuts);
return $control;
}
The problem is, that the ProductListPriceFilterControl is created before createComponentProductListFilters() is finished so there's no presenter in ProductListFiltersControl.
Expected Behavior
It would be nice if it worked the same as in the previous version :)
Possible Solution
Revert of 8a0fb85 ?