From 9d67e2decc5bf5e761a6dcba1a6fd616063ed1bc Mon Sep 17 00:00:00 2001 From: Nick Yeoman Date: Sat, 8 Apr 2023 00:26:32 -0700 Subject: [PATCH] changed for working bundles --- bin/nysymfony | 10 +++++++++- routes/routes.yaml | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 routes/routes.yaml diff --git a/bin/nysymfony b/bin/nysymfony index dec4c27..cc66a40 100755 --- a/bin/nysymfony +++ b/bin/nysymfony @@ -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 ################################################################################ diff --git a/routes/routes.yaml b/routes/routes.yaml new file mode 100644 index 0000000..7141835 --- /dev/null +++ b/routes/routes.yaml @@ -0,0 +1,8 @@ +controllers: + resource: + path: ../src/Controller/ + namespace: App\Controller + type: attribute + +NickYeomanSymfonyCMS: + resource: '@SymfonyCMSBundle/config/routes.yaml'