A new method has been added to the TaskRepositoryInterface
public function countPendingTasks(string $entityClass, string $entityId, string $locale = null): int
Following dependencies are updated and have new minimum requirements:
- sulu/sulu: ^1.6 -> ^2.2
- php-task/task-bundle: ^1.2 -> ^2.0
- jms/serializer-bundle: ^1.1 -> ^3.0
- friendsofsymfony/rest-bundle: ^1.6 -> ^2.0 || ^3.0
The bundle was so refractored to be compatible with Sulu 2.0.
The AutomationViewBuilder
has been refactored and renamed to AutomationViewBuilderFactory
to be consistent with the Sulu core.
In order to add the automation tab to a custom view. You now have to inject the AutomationViewBuilderFactory
into your
custom admin class.
{
+ $viewCollection->add(
- (new AutomationViewBuilder(static::EDIT_FORM_AUTOMATION_VIEW, '/automation'))
- ->setEntityClass($this->customEntityClass)
- ->setParent(static::EDIT_FORM_VIEW)
+ $this->automationViewBuilderFactory->createTaskListViewBuilder(
+ static::EDIT_FORM_AUTOMATION_VIEW,
+ '/automation',
+ $this->customEntityClass
+ )
+ ->setTabOrder(4096)
+ ->setParent(static::EDIT_FORM_VIEW)
+ );
}
The task was extended by the column host
and scheme
to fake a similar request. This will ensure that the Cache
will be delete correctly.
Update your database by running following SQL-Statement:
ALTER TABLE au_task ADD scheme VARCHAR(5) DEFAULT '' NOT NULL, ADD host VARCHAR(255) DEFAULT '' NOT NULL;
ALTER TABLE au_task CHANGE scheme scheme VARCHAR(5) NOT NULL, CHANGE host host VARCHAR(255) NOT NULL;