####ActionBundle
- Class
Oro\Bundle\ActionBundle\Layout\Block\Type\ActionLineButtonsType
was removed -> block typeaction_buttons
replaced with DI configuration. - Added class
Oro\Bundle\ActionBundle\Layout\DataProvider\ActionButtonsProvider
- layout data provider.
####WorkflowBundle
- Class
Oro\Bundle\WorkflowBundle\Model\WorkflowManager
construction signature was changed: now it takesOro\Bundle\WorkflowBundle\Model\WorkflowRegistry
,Oro\Bundle\EntityBundle\ORM\DoctrineHelper
andOro\Bundle\WorkflowBundle\Model\WorkflowSystemConfigManager
as arguments.- method
getApplicableWorkflow
was removed -> new methodgetApplicableWorkflows
with$entity
(as instance or class name) was added instead. - method
getApplicableWorkflowByEntityClass
was marked as deprecated and will throw an exception about "No single workflow supported for an entity" with direction to useOro\Bundle\WorkflowBundle\Model\WorkflowManager::getApplicableWorkflows
method instead. - method
hasApplicableWorkflowByEntityClass
was renamed tohasApplicableWorkflowsByEntityClass
. - method
getWorkflowItemByEntity
was removed -> new methodgetWorkflowItem
with arguments$entity
and$workflowName
to retrieve anWorkflowItem
instance for corresponding entity and workflow. - method
getWorkflowItemsByEntity
was added to retrieve allWorkflowItems
instances from currently active workflow for the entity provided as single argument. - method
hasWorkflowItemsByEntity
was added to get whether entity provided as single argument has any active workflows with itsWorkflowItems
. - method
setActiveWorkflow
was removed -> methodactivateWorkflow
with just one argument as$workflowIdentifier
should be used instead. The method now just ensures that provided workflow should be active. - method
deactivateWorkflow
changed its signature. Now it handle single argument as$workflowIdentifier
to ensure that provided workflow is inactive. - method
resetWorkflowData
was added withWorkflowDefinition $workflowDefinition
as single argument. It removes from database all workflow items related to corresponding workflow.
- method
- Class
Oro\Bundle\WorkflowBundle\Model\Workflow
changed constructor signature. First argumentEntityConnector
was replaced byDoctrineHelper
- method
resetWorkflowData
was removed - useOro\Bundle\WorkflowBundle\Model\WorkflowManager::resetWorkflowData
instead.
- method
- Added class
Oro\Bundle\WorkflowBundle\Model\WorkflowSystemConfigManager
with serviceoro_workflow.manager.system_config
. Its general purpose is to eliminate points of workflow configuration management as single entry for those purpose. - Repository
Oro\Bundle\WorkflowBundle\Entity\Repository\WorkflowItemRepository
signature was changed for methodresetWorkflowData
:- it requires instance of
Oro\Bundle\WorkflowBundle\Entity\WorkflowDefinition
as first argument - argument
excludedWorkflows
was removed;
- it requires instance of
- Changed signature of
@transit_workflow
action. Addedworkflow_name
parameter as a third parameter in inline call. Be aware previously third parameter wasdata
parameter. Nowdata
is fourth one. - Service
oro_workflow.entity_connector
(Oro\Bundle\WorkflowBundle\Model\EntityConnector.php
) removed; - Parameter
oro_workflow.entity_connector.class
removed; - Removed parameter
EntityConnector $entityConnector
from constructor ofOro\Bundle\WorkflowBundle\EventListener\WorkflowItemListener
; - Removed parameter
EntityConnector $entityConnector
from constructor ofOro\Bundle\WorkflowBundle\Model\TriggerScheduleOptionsVerifier
; - Removed form type
Oro\Bundle\WorkflowBundle\Form\Type\ApplicableEntitiesType
; - Service
oro_workflow.entity_connector
(Oro\Bundle\WorkflowBundle\Model\WorkflowEntityConnector
) was added with purpose to check whether entity can be used in workflow as related. - Now entity can have more than one active workflows.
- Added trait
Oro\Bundle\WorkflowBundle\Helper\WorkflowQueryTrait
with methods:joinWorkflowItem
- to easily join workflowItem to an entity with QueryBuilderjoinWorkflowStep
- to easily join workflowStep to an entity with QueryBuilder trough specified workflowItem aliasaddDatagridQuery
- for datagrid listeners to join workflow fields (especially workflowStatus)
####LocaleBundle:
- Added helper
Oro\Bundle\LocaleBundle\Helper\LocalizationQueryTrait
for adding needed joins to QueryBuilder - Added provider
Oro\Bundle\LocaleBundle\Provider\CurrentLocalizationProvider
for providing current localization - Added manager
Oro\Bundle\LocaleBundle\Manager\LocalizationManager
for providing localizations - Added datagrid extension
Oro\Bundle\LocaleBundle\Datagrid\Extension\LocalizedValueExtension
for working with localized values in datagrids - Added datagrid property
Oro\Bundle\LocaleBundle\Datagrid\Formatter\Property\LocalizedValueProperty
- Added extension interface
Oro\Bundle\LocaleBundle\Extension\CurrentLocalizationExtensionInterface
for providing current localization - Added twig filter
localized_value
toOro\Bundle\LocaleBundle\Twig\LocalizationExtension
for getting localized values in Twig - Added ExpressionFunction
localized_value
toOro\Bundle\LocaleBundle\Layout\ExpressionLanguageProvider
- can be used in Layouts - Added Localization Settings page in System configuration
- Updated
Oro\Bundle\LocaleBundle\Helper\LocalizationHelper
, usedCurrentLocalizationProvider
for provide current localization and addedgetLocalizedValue()
to retrieve fallback values
###Layout Component:
- Interface
Oro\Component\Layout\DataProviderInterface
was removed. - Abstract class
Oro\Component\Layout\AbstractServerRenderDataProvider
was removed. - Methods
Oro\Component\Layout\DataAccessorInterface::getIdentifier()
andOro\Component\Layout\DataAccessorInterface::get()
was removed. - Added class
Oro\Component\Layout\DataProviderDecorator
. - Add possibility to use parameters in data providers, for details please check out documentation Layout data.
- Method
Oro\Component\Layout\ContextDataCollection::getIdentifier()
was removed. - Twig method
layout_attr_merge
was renamed tolayout_attr_defaults
. - BlockType classes replaced with DI configuration for listed block types:
external_resource
,input
,link
,meta
,ordered_list
,script
andstyle
. Corresponding block type classes was removed.