×
Inicio Aleatorio

complete symfony app creation

Sección: Symfony

Creado: 24-11-24

#!/bin/bash
if [ ! -d "sf" ]; then
  symfony new sf
fi

cd sf
sed -i 's/database_name.*/database_name: NAME/' app/config/parameters.yml
sed -i 's/database_user.*/database_user: USER/' app/config/parameters.yml
sed -i 's/database_password.*/database_password: PWD/' app/config/parameters.yml
sf doctrine:database:create
sf doctrine:mapping:import --force AppBundle annotation
sf doctrine:generate:entities AppBundle
#sf generate:doctrine:crud --entity=AppBundle:Task --with-write --no-interaction
composer require voryx/restgeneratorbundle
sed -i '/.*new AppBundle\\AppBundle()/a \\t\t\t\t\t\tnew Voryx\\RESTGeneratorBundle\\VoryxRESTGeneratorBundle(),' app/AppKernel.php
sf voryx:generate:rest --entity=AppBundle:Task

Siguiente Publicación