@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | // initialize the default loader and load the DI configuration for the this library |
32 | 32 | $defaultLoader = new XmlFileLoader($container, new FileLocator($vendorDir)); |
33 | -$defaultLoader->load(__DIR__ . '/symfony/Resources/config/services.xml'); |
|
33 | +$defaultLoader->load(__DIR__.'/symfony/Resources/config/services.xml'); |
|
34 | 34 | |
35 | 35 | // initialize and run the application |
36 | 36 | $statusCode = $container->get(DependencyInjectionKeys::APPLICATION)->run($container->get(DependencyInjectionKeys::INPUT)); |
@@ -56,11 +56,11 @@ |
||
56 | 56 | $connection = $setup->getConnection(); |
57 | 57 | |
58 | 58 | // add indices necessary to optimize the importer performance |
59 | - $connection->addIndex('url_rewrite', $setup->getIdxName('url_rewrite', ['entity_id']), ['entity_id']); |
|
60 | - $connection->addIndex('url_rewrite', $setup->getIdxName('url_rewrite', ['entity_id', 'entity_type']), ['entity_id', 'entity_type']); |
|
61 | - $connection->addIndex('catalog_product_entity_varchar', $setup->getIdxName('catalog_product_entity_varchar', ['value']), ['value']); |
|
62 | - $connection->addIndex('eav_attribute_option_value', $setup->getIdxName('eav_attribute_option_value', ['value']), ['value']); |
|
63 | - $connection->addIndex('catalog_product_entity_media_gallery', $setup->getIdxName('catalog_product_entity_media_gallery', ['value']), ['value']); |
|
59 | + $connection->addIndex('url_rewrite', $setup->getIdxName('url_rewrite', [ 'entity_id' ]), [ 'entity_id' ]); |
|
60 | + $connection->addIndex('url_rewrite', $setup->getIdxName('url_rewrite', [ 'entity_id', 'entity_type' ]), [ 'entity_id', 'entity_type' ]); |
|
61 | + $connection->addIndex('catalog_product_entity_varchar', $setup->getIdxName('catalog_product_entity_varchar', [ 'value' ]), [ 'value' ]); |
|
62 | + $connection->addIndex('eav_attribute_option_value', $setup->getIdxName('eav_attribute_option_value', [ 'value' ]), [ 'value' ]); |
|
63 | + $connection->addIndex('catalog_product_entity_media_gallery', $setup->getIdxName('catalog_product_entity_media_gallery', [ 'value' ]), [ 'value' ]); |
|
64 | 64 | |
65 | 65 | // finish setup |
66 | 66 | $setup->endSetup(); |
@@ -34,7 +34,6 @@ |
||
34 | 34 | use TechDivision\Import\Repositories\LinkTypeRepository; |
35 | 35 | use TechDivision\Import\Repositories\LinkAttributeRepository; |
36 | 36 | use TechDivision\Import\Repositories\CoreConfigDataRepository; |
37 | - |
|
38 | 37 | use TechDivision\Import\Services\ImportProcessor as GenericImportProcessor; |
39 | 38 | |
40 | 39 | /** |
@@ -52,14 +52,14 @@ |
||
52 | 52 | $loggers = array(); |
53 | 53 | |
54 | 54 | // add it to the array |
55 | - $loggers[LoggerKeys::SYSTEM] = $systemLogger; |
|
55 | + $loggers[ LoggerKeys::SYSTEM ] = $systemLogger; |
|
56 | 56 | |
57 | 57 | // append the configured loggers or override the default one |
58 | 58 | foreach ($configuration->getLoggers() as $loggerConfiguration) { |
59 | 59 | // load the factory class that creates the logger instance |
60 | 60 | $loggerFactory = $loggerConfiguration->getFactory(); |
61 | 61 | // create the logger instance and add it to the available loggers |
62 | - $loggers[$loggerConfiguration->getName()] = $loggerFactory::factory($configuration, $loggerConfiguration); |
|
62 | + $loggers[ $loggerConfiguration->getName() ] = $loggerFactory::factory($configuration, $loggerConfiguration); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | // return the array with the initialized loggers |
@@ -75,10 +75,10 @@ |
||
75 | 75 | new InputArgument(InputArgumentKeys::OPERATION_NAME, InputArgument::OPTIONAL, 'Operation that has to be executed', InputArgumentKeys::OPERATION_NAME_ARG_ADD_UPDATE), |
76 | 76 | new InputOption(InputOptionKeys::INSTALLATION_DIR, null, InputOption::VALUE_REQUIRED, 'The magento installation directors to use', getcwd()), |
77 | 77 | new InputOption(InputOptionKeys::CONFIGURATION, null, InputOption::VALUE_REQUIRED, 'Path to the configuration file'), |
78 | - new InputOption(InputOptionKeys::SYSTEM_NAME, null, InputOption::VALUE_REQUIRED,'Specify the system name to use', gethostname()), |
|
79 | - new InputOption(InputOptionKeys::PID_FILENAME, null,InputOption::VALUE_REQUIRED, 'The explicit PID filename to use', sprintf('%s/%s', sys_get_temp_dir(), Configuration::PID_FILENAME)), |
|
78 | + new InputOption(InputOptionKeys::SYSTEM_NAME, null, InputOption::VALUE_REQUIRED, 'Specify the system name to use', gethostname()), |
|
79 | + new InputOption(InputOptionKeys::PID_FILENAME, null, InputOption::VALUE_REQUIRED, 'The explicit PID filename to use', sprintf('%s/%s', sys_get_temp_dir(), Configuration::PID_FILENAME)), |
|
80 | 80 | new InputOption(InputOptionKeys::MAGENTO_EDITION, null, InputOption::VALUE_REQUIRED, 'The Magento edition to be used, either one of "CE" or "EE"'), |
81 | - new InputOption(InputOptionKeys::MAGENTO_VERSION, null, InputOption::VALUE_REQUIRED, 'The Magento version to be used, e. g. "2.1.2"'), |
|
81 | + new InputOption(InputOptionKeys::MAGENTO_VERSION, null, InputOption::VALUE_REQUIRED, 'The Magento version to be used, e. g. "2.1.2"'), |
|
82 | 82 | new InputOption(InputOptionKeys::CONFIGURATION, null, InputOption::VALUE_REQUIRED, 'Specify the pathname to the configuration file to use'), |
83 | 83 | new InputOption(InputOptionKeys::ENTITY_TYPE_CODE, null, InputOption::VALUE_REQUIRED, 'Specify the entity type code to use, either one of "catalog_product", "catalog_category" or "eav_attribute"'), |
84 | 84 | new InputOption(InputOptionKeys::SOURCE_DIR, null, InputOption::VALUE_REQUIRED, 'The directory that has to be watched for new files'), |
@@ -18,9 +18,6 @@ |
||
18 | 18 | * @link http://www.techdivision.com |
19 | 19 | */ |
20 | 20 | |
21 | -use Lurker\Event\FilesystemEvent; |
|
22 | - |
|
23 | -use Symfony\Component\Finder\Finder; |
|
24 | 21 | use AppserverIo\RoboTasks\AbstractRoboFile; |
25 | 22 | use Robo\Robo; |
26 | 23 |