Upgrading from 0.10.0 to 0.11.0¶
composer.json file, upgrade the version of
package and all other related packages (like
netgen/block-manager-ezpublish and others) to
~0.11.0 and run the
composer update command.
Run the following command from the root of your installation to execute migration to version 0.11 of Netgen Layouts:
$ php bin/console doctrine:migrations:migrate --configuration=vendor/netgen/block-manager/migrations/doctrine.yml
Upgrading Netgen Content Browser¶
Netgen Content Browser version 0.11 was also automatically installed. Be sure to read its upgrade instructions too, to make sure you custom code keeps working.
- Layouts exported in Netgen Layouts 0.10 cannot be imported into Netgen Layouts 0.11, due to updated specification.
Netgen\BlockManager\Parameters\ParameterInterfacehas been renamed to
Netgen\BlockManager\Parameters\ParameterDefinitionclass, and the interface itself has been removed. This mostly has impact on
Netgen\BlockManager\Parameters\Form\MapperInterface, which receive instances of renamed interfaces in their methods. Update the type hints in your implementations of
ParameterDefinition $parameterDefinitionto migrate.
Netgen\BlockManager\Item\ValueUrlBuilderInterfaceinterface has been renamed to
Netgen\BlockManager\Item\ValueUrlGeneratorInterfaceand the method
getUrlfrom the interface has been renamed to
generate. Symfony dependency injection tag for value URL generators has also been renamed from
ngbm_render_value_objectTwig function has been renamed to