chrom / symfony4

Symfony 4 tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  • Show all services
./bin/console debug:container --show-private

  • show all parameters
./bin/console debug:container --parameters

  • show container configuration
./bin/console debug:container monolog.logger

  • show logger services
./bin/console debug:container --show-private log 

  • Current autowiring
./bin/console debug:autowiring --all

  • Existing example configuration of ramework
./bin/console config:dump framework

  • Current configuration of ramework
./bin/console debug:config framework

  • Get information about current instance
./bin/console about

  • Bundle maker
composer require maker --dev

  • Create new database
./bin/console  doctrine:database:create

  • Create new entity - DTO model
./bin/console make:entity

  • Create new migration using model
./bin/console make:migration

  • Apply migration
./bin/console doctrine:migrations:migrate

Fixtures:

composer require orm-fixtures --dev `


  • Create fixture class
 ./bin/console make:fixtures

  • Create controller class
 ./bin/console make:controller

  • Load fixtures to DB
 ./bin/console doctrine:fixtures:load

Fast create new db

bin/console doctrine:database:drop --force
bin/console doctrine:database:create
bin/console doctrine:schema:create
bin/console doctrine:fixtures:load

  • Show all config data and all filters
./bin/console debug:twig

  • Make Auth entry point
./bin/console make:auth

  • Show all router
./bin/console debug:router 

  • For serializing install package
composer require serializer 

About

Symfony 4 tutorial


Languages

Language:PHP 72.6%Language:HTML 22.6%Language:CSS 3.8%Language:JavaScript 1.1%