Skip to content

Commit

Permalink
カスタムコンテンツ内のプラグインのPluginクラスを新名称に変更
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Apr 14, 2024
1 parent 960aeda commit 0270da2
Show file tree
Hide file tree
Showing 21 changed files with 25 additions and 24 deletions.
1 change: 1 addition & 0 deletions plugins/baser-core/src/Utility/BcUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ static public function includePluginClass($pluginName)
if (!$pluginPath) {
return false;
}
$name = Inflector::camelize($name, '-');
if(file_exists($pluginPath . 'src' . DS . 'Plugin.php')) {
$pluginClassPath = $pluginPath . 'src' . DS . 'Plugin.php';
} elseif(file_exists($pluginPath . 'src' . DS . $name . 'Plugin.php')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function testSetEditorToolbar()
'editorToolType' => 'simple'
]);
$this->assertIsArray($options['editorToolbar']);
(new \BcEditorTemplate\Plugin())->install(['connection' => 'test']);
(new \BcEditorTemplate\BcEditorTemplatePlugin())->install(['connection' => 'test']);
$options = $this->BcCkeditor->setEditorToolbar([
'editorToolbar' => [],
'editorUseTemplates' => true,
Expand Down
6 changes: 3 additions & 3 deletions plugins/bc-content-link/tests/TestCase/PluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

namespace BcContentLink\Test\TestCase;

use BcContentLink\Plugin;
use BcContentLink\BcContentLinkPlugin;
use BcContentLink\Service\ContentLinksServiceInterface;
use Cake\Core\Container;
use BaserCore\TestSuite\BcTestCase;

/**
* Class PluginTest
* @property Plugin $Plugin
* @property BcContentLinkPlugin $Plugin
*/
class PluginTest extends BcTestCase
{
Expand All @@ -31,7 +31,7 @@ class PluginTest extends BcTestCase
public function setUp(): void
{
parent::setUp();
$this->Plugin = new Plugin(['name' => 'BcContentLink']);
$this->Plugin = new BcContentLinkPlugin(['name' => 'BcContentLink']);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcAutoZipPlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcCheckboxPlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcDatePlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcDateTimePlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcEmailPlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcFilePlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcHiddenPlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcMultiplePlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcPasswordPlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcPrefPlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcRadioPlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcRelatedPlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcSelectPlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcTelPlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcTextPlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcTextareaPlugin extends BcPlugin
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Plugin
*/
class Plugin extends BcPlugin
class BcCcWysiwygPlugin extends BcPlugin
{

/**
Expand Down
6 changes: 3 additions & 3 deletions plugins/bc-search-index/tests/TestCase/PluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

namespace BcSearchIndex\Test\TestCase;

use BcSearchIndex\Plugin;
use BcSearchIndex\BcSearchIndexPlugin;
use BcSearchIndex\Service\Admin\SearchIndexesAdminServiceInterface;
use BcSearchIndex\Service\SearchIndexesServiceInterface;
use Cake\Core\Container;
use BaserCore\TestSuite\BcTestCase;

/**
* Class PluginTest
* @property Plugin $Plugin
* @property BcSearchIndexPlugin $Plugin
*/
class PluginTest extends BcTestCase
{
Expand All @@ -32,7 +32,7 @@ class PluginTest extends BcTestCase
public function setUp(): void
{
parent::setUp();
$this->Plugin = new Plugin(['name' => 'BcSearchIndex']);
$this->Plugin = new BcSearchIndexPlugin(['name' => 'BcSearchIndex']);
}

/**
Expand Down

0 comments on commit 0270da2

Please sign in to comment.