Skip to content

Commit

Permalink
Merge pull request #6129 from kurozumi/fix-plugin-generate-template
Browse files Browse the repository at this point in the history
プラグインジェネレーターのConfigRepositoryのテンプレートを修正
  • Loading branch information
dotani1111 authored Apr 24, 2024
2 parents 63062f0 + 1b4cb66 commit 01dc82f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/Eccube/Command/PluginGenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -486,11 +486,19 @@ public function __construct(ManagerRegistry \$registry)
/**
* @param int \$id
*
* @return null|Config
* @return Config
*
* @throws \Exception
*/
public function get(\$id = 1)
{
return \$this->find(\$id);
\$Config = \$this->find(\$id);
if (null === \$Config) {
throw new \Exception('Config not found. id = '.\$id);
}
return \$Config;
}
}
Expand Down

0 comments on commit 01dc82f

Please sign in to comment.