changed for working bundles

This commit is contained in:
Nick Yeoman 2023-04-08 00:26:32 -07:00
parent f46d08850e
commit 9d67e2decc
2 changed files with 17 additions and 1 deletions

View File

@ -55,10 +55,18 @@ echo "Creating scaffolding Twig templates in views directory"
composer require twig
composer require nickyeoman/nytwig
mv config/packages/twig.yaml config/packages/twig.yaml.bak
wget https://git.gopo.li/nick/symfony/raw/branch/main/twig/twig.yaml
wget https://git.nickyeoman.com/nick/symfony/raw/branch/main/twig/twig.yaml
mv twig.yaml config/packages/twig.yaml
echo "Your twig.yaml config file has been replaced, remove the bak if you are happy."
################################################################################
# Routes
################################################################################
mv config/routes/routes.yaml config/routes/routes.yaml.bak
wget https://git.nickyeoman.com/nick/symfony/raw/branch/main/routes/routes.yaml
mv routes.yaml config/routes/routes.yaml
################################################################################
# SASS
################################################################################

8
routes/routes.yaml Normal file
View File

@ -0,0 +1,8 @@
controllers:
resource:
path: ../src/Controller/
namespace: App\Controller
type: attribute
NickYeomanSymfonyCMS:
resource: '@SymfonyCMSBundle/config/routes.yaml'