akeneo-labs / custom-entity-bundle
Akeneo PIM Custom entity bundle
Installs: 93 952
Dependents: 8
Suggesters: 0
Security: 0
Stars: 53
Watchers: 26
Forks: 61
Open Issues: 26
Type:symfony-bundle
Requires
- akeneo/pim-community-dev: ^4.0.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14.0
- phpspec/phpspec: ^5.0
- dev-master
- v4.0.0
- 3.0.x-dev
- v3.0.2
- v3.0.1
- v3.0.0
- v2.4.0
- v2.3.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- 2.0.x-dev
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2-beta
- v2.0.0-beta
- 1.10.x-dev
- v1.10.9
- v1.10.8
- v1.10.7
- v1.10.6
- v1.10.5
- v1.10.4
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- 1.9.x-dev
- v1.9.1
- v1.9.0
- v1.9.0-RC1
- v1.8.0
- 1.7.x-dev
- v1.7.0
- 1.6.x-dev
- v1.6.0
- v1.6.0-RC2
- v1.6-RC1
- v1.6.0-alpha1
- 1.5.x-dev
- v1.5.0-RC1
- v1.4.0
- v1.3.0
- v1.3.0-RC1
- v1.3.0-alpha1
- v1.2.0
- v1.1.1
- v1.1.0
- 1.0.0
- dev-fix-import-with-translations
- dev-github-137
This package is auto-updated.
Last update: 2024-09-21 18:03:33 UTC
README
Facilitates the creation of PIM reference data and related views in the PIM.
For more information, please see http://docs.akeneo.com/
Requirements
Installation
You can install this bundle with composer (see requirements section):
php composer.phar require "akeneo-labs/custom-entity-bundle":"4.0.*"
Then add the following lines at the end of your config/routes/routes.yml :
pim_customentity: prefix: /reference-data resource: "@PimCustomEntityBundle/Resources/config/routing.yml"
and enable the bundle in the config/bundles.php
file:
return [ // ... Pim\Bundle\CustomEntityBundle\PimCustomEntityBundle::class => ['all' => true] ];
If your installation is already set up, you have to run the following command in order to add the quick export job:
php bin/console akeneo:batch:create-job "Akeneo Mass Edit Connector" "csv_reference_data_quick_export" "quick_export" "csv_reference_data_quick_export" '{"delimiter": ";", "enclosure": "\"", "withHeader": true, "filePath": "/tmp/reference_data_quick_export.csv"}'
Documentation
The reference data documentation can be found in the PIM documentation.
Detailled information can be found in the bundle documentation.
Run the Tests
Unit tests
$ composer install $ vendor/bin/phpspec run
Code style
$ composer install $ vendor/bin/php-cs-fixer fix -v --diff --config .php_cs.php
PHPUnit
- Install an Akeneo PIM with the CustomEntityBundle
- Copy
Tests/Resources/phpunit.xml
to project root - Copy
Tests/Resources/.env.test
to project root, and edit accordingly to your config - Copy
Tests/Resources/bundles.php
orTests/Resources/bundles_ee.php
(depending on your PIM version) content in theconfig/bundles.php
file
Then:
$ php bin/console cache:warmup --env=test If you're on EE Edition : $ php bin/console pim:installer:db --env=test --catalog vendor/akeneo/pim-enterprise-dev/src/Akeneo/Platform/Bundle/InstallerBundle/Resources/fixtures/minimal Else : $ php bin/console pim:installer:db --env=test --catalog vendor/akeneo/pim-community-dev/src/Akeneo/Platform/Bundle/InstallerBundle/Resources/fixtures/minimal $ vendor/bin/phpunit
Contributing
If you want to contribute to this open-source project, thank you to read and sign the following contributor agreement