-
Notifications
You must be signed in to change notification settings - Fork 655
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3723 from kiy0taka/sf/last-boss
新オーナーズストア周りの実装
- Loading branch information
Showing
42 changed files
with
1,095 additions
and
736 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of EC-CUBE | ||
* | ||
* Copyright(c) LOCKON CO.,LTD. All Rights Reserved. | ||
* | ||
* http://www.lockon.co.jp/ | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Eccube\Command; | ||
|
||
use Eccube\Entity\Plugin; | ||
use Symfony\Component\Console\Command\Command; | ||
use Symfony\Component\Console\Input\InputArgument; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
use Symfony\Component\Console\Style\SymfonyStyle; | ||
|
||
class PluginSchemaUpdateCommand extends Command | ||
{ | ||
use PluginCommandTrait; | ||
|
||
protected static $defaultName = 'eccube:plugin:schema-update'; | ||
|
||
protected function configure() | ||
{ | ||
$this | ||
->addArgument('code', InputArgument::REQUIRED, 'Plugin code') | ||
->setDescription('Execute plugin schema update.'); | ||
} | ||
|
||
protected function execute(InputInterface $input, OutputInterface $output) | ||
{ | ||
$io = new SymfonyStyle($input, $output); | ||
|
||
$code = $input->getArgument('code'); | ||
|
||
/** @var Plugin $Plugin */ | ||
$Plugin = $this->pluginRepository->findByCode($code); | ||
if (!$Plugin) { | ||
$io->error("No such plugin `${code}`."); | ||
return 1; | ||
} | ||
|
||
$config = $this->pluginService->readConfig($this->pluginService->calcPluginDir($code)); | ||
$this->pluginService->generateProxyAndUpdateSchema($Plugin, $config); | ||
$this->clearCache($io); | ||
|
||
$io->success('Schema Updated.'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of EC-CUBE | ||
* | ||
* Copyright(c) LOCKON CO.,LTD. All Rights Reserved. | ||
* | ||
* http://www.lockon.co.jp/ | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Eccube\Command; | ||
|
||
use Eccube\Entity\Plugin; | ||
use Symfony\Component\Console\Command\Command; | ||
use Symfony\Component\Console\Input\InputArgument; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
use Symfony\Component\Console\Style\SymfonyStyle; | ||
|
||
class PluginUpdateCommand extends Command | ||
{ | ||
protected static $defaultName = 'eccube:plugin:update'; | ||
|
||
use PluginCommandTrait; | ||
|
||
protected function configure() | ||
{ | ||
$this | ||
->addArgument('code', InputArgument::REQUIRED, 'Plugin code') | ||
->setDescription('Execute plugin update process.'); | ||
} | ||
|
||
protected function execute(InputInterface $input, OutputInterface $output) | ||
{ | ||
$io = new SymfonyStyle($input, $output); | ||
|
||
$code = $input->getArgument('code'); | ||
|
||
/** @var Plugin $Plugin */ | ||
$Plugin = $this->pluginRepository->findByCode($code); | ||
|
||
if (!$Plugin) { | ||
$io->error("No such plugin `${code}`."); | ||
return 1; | ||
} | ||
|
||
$config = $this->pluginService->readConfig($this->pluginService->calcPluginDir($code)); | ||
$this->pluginService->updatePlugin($Plugin, $config); | ||
$this->clearCache($io); | ||
|
||
$io->success('Updated.'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.