LoginSignup
4
0

More than 5 years have passed since last update.

Symfony 3.4 の新機能: SymfonyMakerBundle の紹介

Last updated at Posted at 2017-12-22

Symfony Advent Calendar の 22日目の投稿です。まだ空いていたのでさくっと SymfonyMakerBundleの紹介です。

SymfonyMakerBundle

Symfony 3.4 以降から SensioGeneratorBundle に代わってSymfonyMakerBundle が登場しました。

このバンドルは、Commands, Controllers, Form, Test などなど機能の作成を補助してくれます。詳細はドキュメントにて確認してみてください :smile:

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

$ php bin/console list make

 make:command            Creates a new console command class
 make:controller         Creates a new controller class
 make:entity             Creates a new Doctrine entity class

 [...]

 make:validator          Creates a new validator and constraint class
 make:voter              Creates a new security voter class

またこのバンドルを利用してオリジナルの Maker を作成することもできるようですね!実装済みのコードが以下にありますのでここを参考に活用していくといいかもしれません。

かんたんですが、以上です。Command で効率化をはかるのが私は好きなので、設計や実装をみていろいろと学んでいこうと思っています :smile_cat:

それでは :smile_cat:

4
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
0