Skip to content

Commit dbaade1

Browse files
authored
Improve fixtures init (#17)
* currencies, user groups, user roles and users fixtures moved in the init.xlsx import * Excel init import profile created and useable after first init * Excel init - rework families + remove minimal_FR * Excel init - specific EE fixtures * Update documentation and add basic custom init installer
1 parent fcd5098 commit dbaade1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+554
-566
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/akeneo/ExcelInitBundle.svg?branch=master)](https://travis-ci.org/akeneo/ExcelInitBundle)
44

5-
![alt text](./doc/pictures/akeneo_excel.png "")
5+
![alt text](./doc/pictures/bundle_icon.jpg "")
66

77
This bundle adds support of Excel XSLX files as a source for initializing catalog structure for [Akeneo PIM](https://github.com/akeneo/pim-community-standard).
88

@@ -13,6 +13,7 @@ This bundle adds support of Excel XSLX files as a source for initializing catalo
1313
| ExcelInitBundle | Akeneo PIM Community Edition |
1414
|:---------------:|:----------------------------:|
1515
| v1.0.* | v1.6.* |
16+
| v1.1.* | v1.6.* |
1617

1718
## Installation
1819

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
],
2121
"require": {
22-
"akeneo/pim-community-dev": "~1.6"
22+
"akeneo/pim-community-dev": "1.6.*"
2323
},
2424
"require-dev": {
2525
"phpspec/phpspec": "@stable",
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace Akeneo\Bundle\InstallerBundle\DependencyInjection;
4+
5+
use Symfony\Component\DependencyInjection\ContainerBuilder;
6+
use Symfony\Component\Config\FileLocator;
7+
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
8+
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
9+
10+
/**
11+
* @author JM Leroux <[email protected]>
12+
*/
13+
class PimInitInstallerExtension extends Extension
14+
{
15+
/**
16+
* {@inheritDoc}
17+
*/
18+
public function load(array $configs, ContainerBuilder $container)
19+
{
20+
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
21+
$loader->load('parameters.yml');
22+
}
23+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace Akeneo\Bundle\InstallerBundle;
4+
5+
use Symfony\Component\HttpKernel\Bundle\Bundle;
6+
7+
/**
8+
* @author JM Leroux <[email protected]>
9+
*/
10+
class PimInitInstallerBundle extends Bundle
11+
{
12+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
parameters:
2+
pim_installer.fixture_loader.job_loader.config_file: 'PimExcelInitBundle/Resources/config/fixtures_jobs_ee.yml'
3+
installer_data: 'PimInitInstallerBundle:minimal_EE'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
code;parent;label-en_US
2+
asset_main_catalog;;Asset main catalog
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
category;view_items;edit_items
2+
asset_main_catalog;IT support,Manager,Redactor;IT support,Manager,Redactor
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
asset_channel_configurations: ~

doc/Akeneo/Bundle/InstallerBundle/Resources/fixtures/minimal_EE/assets.csv

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
attribute_group;view_attributes;edit_attributes
2+
other;IT support,Manager,Redactor;IT support,Manager,Redactor

0 commit comments

Comments
 (0)