Skip to content

Commit

Permalink
Merge pull request #30 from valantic-CEC-Deutschland-GmbH/no-task/upd…
Browse files Browse the repository at this point in the history
…ate-templates

- bugfix missing use statement in dependencyProviders
- added executer boilerplate
- added runner boilerplate
  • Loading branch information
patrickjaja authored Apr 5, 2024
2 parents 38f433c + 09d7aea commit f07eb60
Show file tree
Hide file tree
Showing 11 changed files with 118 additions and 34 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<!-- Keep a Changelog guide -> https://keepachangelog.com -->

# intellij_spryker_plugin Changelog
## [1.0.12]
- bugfix missing use statement in dependencyProviders
- added executer boilerplate
- added runner boilerplate

## [1.0.11]
- replaced deprecated API calls
- PhpPsiUtil.getParentByCondition
- PhpPsiUtil.getParentByCondition
- fixed ArrayOutOfBoundsException in SprykerModuleAction

## [1.0.10]
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pluginGroup = com.github.patrickjaja.intellijsprykerplugin
pluginName = intellij_spryker_plugin
pluginVersion = 1.0.11
pluginVersion = 1.0.12
pluginSinceBuild = 223
pluginUntilBuild =
# pluginUntilBuild = 221.*
Expand Down
72 changes: 40 additions & 32 deletions src/main/resources/template-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{"type":"file","name":"Config.php.twig"},
{"type":"file","name":"DependencyProvider.php.twig"},
{"type":"file","name":"Factory.php.twig"}
]},
]},
{"type":"file","name":"codeception.yml.twig"},
{"type":"file","name":"composer.json.twig"},
{"type":"file","name":"CONTRIBUTING.md.twig"},
Expand All @@ -19,7 +19,7 @@
{"type":"file","name":"Config.php.twig"},
{"type":"directory","name":"Controller","contents":[
{"type":"file","name":"Controller.php.twig"}
]},
]},
{"type":"file","name":"DependencyProvider.php.twig"},
{"type":"file","name":"Factory.php.twig"},
{"type":"directory","name":"Plugin","contents":[
Expand All @@ -33,12 +33,12 @@
{"type":"file","name":"ResourceRelationshipPlugin.php.twig"},
{"type":"file","name":"RestRequestValidatorPlugin.php.twig"},
{"type":"file","name":"ValidateHttpRequestPlugin.php.twig"}
]}
]},
]}
]},
{"type":"directory","name":"Validation","contents":[
{"type":"file","name":"Validation.yml.twig"}
]}
]},
]}
]},
{"type":"file","name":"LICENSE.twig"},
{"type":"file","name":"phpstan.neon.twig"},
{"type":"file","name":"README.md.twig"},
Expand All @@ -49,81 +49,89 @@
{"type":"file","name":"ServiceFactory.php.twig"},
{"type":"file","name":"ServiceInterface.php.twig"},
{"type":"file","name":"Service.php.twig"}
]},
]},
{"type":"directory","name":"Shared","contents":[
{"type":"file","name":"Constants.php.twig"},
{"type":"directory","name":"Transfer","contents":[
{"type":"file","name":"transfer.xml.twig"}
]}
]},
]}
]},
{"type":"file","name":"tooling.yml.twig"},
{"type":"directory","name":"Yves","contents":[
{"type":"file","name":"Config.php.twig"},
{"type":"directory","name":"Controller","contents":[
{"type":"file","name":"Controller.php.twig"}
]},
]},
{"type":"file","name":"DependencyProvider.php.twig"},
{"type":"file","name":"Factory.php.twig"},
{"type":"directory","name":"Plugin","contents":[
{"type":"directory","name":"Router","contents":[
{"type":"file","name":"RouteProviderPlugin.php.twig"}
]}
]},
]}
]},
{"type":"directory","name":"Theme","contents":[
{"type":"file","name":"ViewTwig.twig"},
{"type":"file","name":"WidgetViewTwig.twig"}
]},
]},
{"type":"directory","name":"Widget","contents":[
{"type":"file","name":"Widget.php.twig"}
]}
]},
]}
]},
{"type":"directory","name":"Zed","contents":[
{"type":"directory","name":"Business","contents":[
{"type":"file","name":"BusinessFactory.php.twig"},
{"type":"directory","name":"Exception","contents":[
{"type":"file","name":"$CustomException.php.twig"}
]},
]},
{"type":"directory","name":"Executor","contents":[
{"type":"file","name":"$ExecutorInterface.php.twig"},
{"type":"file","name":"$Executor.php.twig"}
]},
{"type":"file","name":"FacadeInterface.php.twig"},
{"type":"file","name":"Facade.php.twig"},
{"type":"directory","name":"Mapper","contents":[
{"type":"file","name":"MapperInterface.php.twig"},
{"type":"file","name":"Mapper.php.twig"}
]},
]},
{"type":"directory","name":"Model","contents":[
{"type":"file","name":"$CustomBusinessModelInterface.php.twig"},
{"type":"file","name":"$CustomBusinessModel.php.twig"}
]},
]},
{"type":"directory","name":"Reader","contents":[
{"type":"file","name":"ReaderInterface.php.twig"},
{"type":"file","name":"Reader.php.twig"}
]},
]},
{"type":"directory","name":"Runner","contents":[
{"type":"file","name":"$RunnerInterface.php.twig"},
{"type":"file","name":"$Runner.php.twig"}
]},
{"type":"directory","name":"Writer","contents":[
{"type":"file","name":"WriterInterface.php.twig"},
{"type":"file","name":"Writer.php.twig"}
]}
]},
]}
]},
{"type":"directory","name":"Communication","contents":[
{"type":"file","name":"CommunicationFactory.php.twig"},
{"type":"directory","name":"Console","contents":[
{"type":"file","name":"Console.php.twig"}
]},
]},
{"type":"directory","name":"Controller","contents":[
{"type":"file","name":"$EditController.php.twig"},
{"type":"file","name":"$GatewayController.php.twig"},
{"type":"file","name":"$IndexController.php.twig"},
{"type":"file","name":"$ViewController.php.twig"}
]},
]},
{"type":"file","name":"navigation.xml.twig"},
{"type":"directory","name":"Plugin","contents":[
{"type":"directory","name":"Command","contents":[
{"type":"file","name":"CommandPlugin.php.twig"}
]},
]},
{"type":"directory","name":"Queue","contents":[
{"type":"file","name":"QueueMessageProcessorPlugin.php.twig"},
{"type":"file","name":"QueueMessageRetryProcessorPlugin.php.twig"}
]}
]}
]}
]},
]},
{"type":"file","name":"Config.php.twig"},
{"type":"file","name":"DependencyProvider.php.twig"},
{"type":"directory","name":"Persistence","contents":[
Expand All @@ -132,21 +140,21 @@
{"type":"directory","name":"Mapper","contents":[
{"type":"file","name":"MapperInterface.php.twig"},
{"type":"file","name":"Mapper.php.twig"}
]},
]},
{"type":"file","name":"PersistenceFactory.php.twig"},
{"type":"directory","name":"Propel","contents":[
{"type":"directory","name":"Schema","contents":[
{"type":"file","name":"schema.xml.twig"}
]}
]},
]}
]},
{"type":"file","name":"RepositoryInterface.php.twig"},
{"type":"file","name":"Repository.php.twig"}
]},
]},
{"type":"directory","name":"Presentation","contents":[
{"type":"file","name":"index.twig"}
]}
]}
]}
]}
,
{"type":"report","directories":33,"files":80}
{"type":"report","directories":36,"files":84}
]
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ declare(strict_types = 1);
namespace {{ organization }}\Service\{{ module }};
use Spryker\Service\Kernel\AbstractBundleDependencyProvider;
use Spryker\Yves\Kernel\Container;
class {{ module }}DependencyProvider extends AbstractBundleDependencyProvider
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ declare(strict_types = 1);
namespace {{ organization }}\Yves\{{ module }};
use Spryker\Yves\Kernel\AbstractBundleDependencyProvider;
use Spryker\Yves\Kernel\Container;
class {{ module }}DependencyProvider extends AbstractBundleDependencyProvider
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
declare(strict_types = 1);
namespace {{ organization }}\Zed\{{ module }}\Business\Executor;
class Executor implements ExecutorInterface
{
/**
* @return void
*/
public function execute(): void
{
// TODO: Implement run() method.
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
declare(strict_types = 1);
namespace {{ organization }}\Zed\{{ module }}\Business\Executor;
class ExecutorInterface
{
/**
* @return void
*/
public function execute(): void;
}
16 changes: 16 additions & 0 deletions src/main/resources/templates/Zed/Business/Runner/$Runner.php.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
declare(strict_types = 1);
namespace {{ organization }}\Zed\{{ module }}\Business\Runner;
class Runner implements RunnerInterface
{
/**
* @return void
*/
public function run(): void
{
// TODO: Implement run() method.
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
declare(strict_types = 1);
namespace {{ organization }}\Zed\{{ module }}\Business\Runner;
class RunnerInterface
{
/**
* @return void
*/
public function run(): void;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,14 @@ use Spryker\Zed\StateMachine\Dependency\Plugin\CommandPluginInterface;
*/
class {{ className }}CommandPlugin extends AbstractPlugin implements CommandPluginInterface
{
/**
* @param \Generated\Shared\Transfer\StateMachineItemTransfer $stateMachineItemTransfer
*
* @return bool
*/
public function run(StateMachineItemTransfer $stateMachineItemTransfer): bool
{
// TODO: Implement run() method.
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ declare(strict_types = 1);
namespace {{ organization }}\Zed\{{ module }};
use Spryker\Zed\Kernel\AbstractBundleDependencyProvider;
use Spryker\Zed\Kernel\Container;
/**
* @method \{{ organization }}\Zed\{{ module }}\{{ module }}Config getConfig()
Expand Down

0 comments on commit f07eb60

Please sign in to comment.