SyMfonAK - vyvíjame databázy pomocou frameworku Symfony

Symfony 3 the Bundle System

Z SyMfonAK
Prejsť na: navigácia, hľadanie

Creating a Bundle

Atlantis provider

príkaz na vytvorenie hlásil chybu pri interaktívnom móde, preto som musel dať príznak na zakázanie

php -d date.timezone="UTC" bin/console generate:bundle --namespace=Acme/TestBundle --no-interaction

V príklade je Acme/TestBundle

toto všetko vytvoril:

 Bundle generation


> Generating a sample bundle skeleton into app/../src/Acme/TestBundle
  created ./app/../src/Acme/TestBundle/
  created ./app/../src/Acme/TestBundle/AcmeTestBundle.php
  created ./app/../src/Acme/TestBundle/Controller/
  created ./app/../src/Acme/TestBundle/Controller/DefaultController.php
  created ./app/../tests/AcmeTestBundle/Controller/
  created ./app/../tests/AcmeTestBundle/Controller/DefaultControllerTest.php
  created ./app/../src/Acme/TestBundle/Resources/views/Default/
  created ./app/../src/Acme/TestBundle/Resources/views/Default/index.html.twig
  created ./app/../src/Acme/TestBundle/Resources/config/
  created ./app/../src/Acme/TestBundle/Resources/config/services.yml
> Checking that the bundle is autoloaded
> Enabling the bundle inside app/AppKernel.php
  updated ./app/AppKernel.php
> Importing the bundle's routes from the app/config/routing.yml file
  updated ./app/config/routing.yml
> Importing the bundle's services.yml from the app/config/config.yml file
  updated ./app/config/config.yml


  Everything is OK! Now get to work :).