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'