概要(Overview)
While install a plugin which have asset, an error occurred
期待する内容(Expect) or 要望 (Requirement)
- Install plugin success although it have asset
- Need define the way work with asset on plugin
- Correct parameter
plugin_html_realdir and plugin_temp_realdir at eccube.yaml
再現手順(Procedure)
- Place asset into
Resource/asset directory
SamplePlugin
├── Resource
│ ├── assets
│ │ ├── css
│ │ │ └── xxxx.css
│ │ ├── img
│ │ │ ├── xxxx.gif
│ │ │ ├── xxxx.jpg
│ │ │ └── xxxx.png
│ │ └── js
│ │ └── xxxx.js
- Run command
php bin/console eccube:plugin:install --code=SamplePlugin
- Error occurred
[Symfony\Component\Filesystem\Exception\IOException]
Failed to create "/PATH/TO/WEB_ROOT/src/Eccube/Repository/Master/plugin/SamplePlugin/assets"
環境 (environment)
- EC-CUBE: 3.n
- PHP: 7.1
- DB:
関連情報 (Ref)
Exception trace:
Symfony\Component\Filesystem\Filesystem->mkdir() at /home/travis/build/eccubevn/related-product-plugin/ec-cube/vendor/symfony/filesystem/Filesystem.php:571
Symfony\Component\Filesystem\Filesystem->mirror() at /home/travis/build/eccubevn/related-product-plugin/ec-cube/src/Eccube/Service/PluginService.php:1010
Eccube\Service\PluginService->copyAssets() at /home/travis/build/eccubevn/related-product-plugin/ec-cube/src/Eccube/Service/PluginService.php:195
Eccube\Service\PluginService->install() at /home/travis/build/eccubevn/related-product-plugin/ec-cube/src/Eccube/Command/PluginInstallCommand.php:43
Eccube\Command\PluginInstallCommand->execute() at /home/travis/build/eccubevn/related-product-plugin/ec-cube/vendor/symfony/console/Command/Command.php:252
Symfony\Component\Console\Command\Command->run() at /home/travis/build/eccubevn/related-product-plugin/ec-cube/vendor/symfony/console/Application.php:964
Symfony\Component\Console\Application->doRunCommand() at /home/travis/build/eccubevn/related-product-plugin/ec-cube/vendor/symfony/framework-bundle/Console/Application.php:86
Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /home/travis/build/eccubevn/related-product-plugin/ec-cube/vendor/symfony/console/Application.php:248
Symfony\Component\Console\Application->doRun() at /home/travis/build/eccubevn/related-product-plugin/ec-cube/vendor/symfony/framework-bundle/Console/Application.php:74
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/travis/build/eccubevn/related-product-plugin/ec-cube/vendor/symfony/console/Application.php:148
Symfony\Component\Console\Application->run() at /home/travis/build/eccubevn/related-product-plugin/ec-cube/bin/console:37
概要(Overview)
While install a plugin which have asset, an error occurred
期待する内容(Expect) or 要望 (Requirement)
plugin_html_realdirandplugin_temp_realdirateccube.yaml再現手順(Procedure)
Resource/assetdirectoryphp bin/console eccube:plugin:install --code=SamplePlugin環境 (environment)
関連情報 (Ref)
Exception trace: