From 2a4eb4b966a512095a1444ddf57459231b99dc2c Mon Sep 17 00:00:00 2001 From: Tac Tacelosky <tacman@gmail.com> Date: Fri, 3 Jan 2025 17:50:18 -0500 Subject: [PATCH 1/5] use yaml instead of php for config --- .../crawler-bundle/1.5/config/routes/survos_crawler.php | 9 --------- .../crawler-bundle/1.5/config/routes/survos_crawler.yaml | 4 ++++ 2 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 survos/crawler-bundle/1.5/config/routes/survos_crawler.php create mode 100644 survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml diff --git a/survos/crawler-bundle/1.5/config/routes/survos_crawler.php b/survos/crawler-bundle/1.5/config/routes/survos_crawler.php deleted file mode 100644 index adbbb7cc2..000000000 --- a/survos/crawler-bundle/1.5/config/routes/survos_crawler.php +++ /dev/null @@ -1,9 +0,0 @@ -<?php -use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; - -return static function (RoutingConfigurator $routes): void { - $routes->import('@SurvosCrawlerBundle/config/routes.php') - ->prefix('/admin') // consider adding this path to the access_control key in security - ; -}; - diff --git a/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml b/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml new file mode 100644 index 000000000..2baeb5f5b --- /dev/null +++ b/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml @@ -0,0 +1,4 @@ +survos_crawler: + resource: '@SurvosCrawlerBundle/config/routes.yaml' + # consider adding /admin to this route and securing it in security.yaml + prefix: '/crawler' From fbe7e608f98a9b6c74139426be80e2d2e5d447fe Mon Sep 17 00:00:00 2001 From: Tac Tacelosky <tacman@gmail.com> Date: Fri, 3 Jan 2025 18:17:48 -0500 Subject: [PATCH 2/5] fix indendation --- survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml b/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml index 2baeb5f5b..4731bdb98 100644 --- a/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml +++ b/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml @@ -1,4 +1,4 @@ survos_crawler: - resource: '@SurvosCrawlerBundle/config/routes.yaml' - # consider adding /admin to this route and securing it in security.yaml - prefix: '/crawler' + resource: '@SurvosCrawlerBundle/config/routes.yaml' + # consider adding /admin to this route and securing it in security.yaml + prefix: '/crawler' From 7fcccc263f621af8fcfe077f0c06829ee532c36a Mon Sep 17 00:00:00 2001 From: Tac Tacelosky <tacman@gmail.com> Date: Fri, 3 Jan 2025 19:19:19 -0500 Subject: [PATCH 3/5] add note about base_url --- survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml b/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml index 4731bdb98..6b8d5786e 100644 --- a/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml +++ b/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml @@ -2,3 +2,6 @@ survos_crawler: resource: '@SurvosCrawlerBundle/config/routes.yaml' # consider adding /admin to this route and securing it in security.yaml prefix: '/crawler' + # if you've run symfony proxy:domain:attach my-project, then the error messages will be displayed with this prefix. That way, you can simply click on a link to open the page. + base_url: 'https://my-project.wip/' + From a9fc2ef138da3fe882ec128130090a44df3f14c3 Mon Sep 17 00:00:00 2001 From: Tac Tacelosky <tacman@gmail.com> Date: Fri, 3 Jan 2025 19:19:28 -0500 Subject: [PATCH 4/5] add note about base_url --- survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml b/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml index 6b8d5786e..2fc36ba3e 100644 --- a/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml +++ b/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml @@ -3,5 +3,5 @@ survos_crawler: # consider adding /admin to this route and securing it in security.yaml prefix: '/crawler' # if you've run symfony proxy:domain:attach my-project, then the error messages will be displayed with this prefix. That way, you can simply click on a link to open the page. - base_url: 'https://my-project.wip/' + # base_url: 'https://my-project.wip/' From 1aa9b8f3efe972f456da9d74d3bd1d21850dfd2c Mon Sep 17 00:00:00 2001 From: Tac Tacelosky <tacman@gmail.com> Date: Fri, 3 Jan 2025 19:25:49 -0500 Subject: [PATCH 5/5] change comment to trigger rebuild --- survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml b/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml index 2fc36ba3e..e708def47 100644 --- a/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml +++ b/survos/crawler-bundle/1.5/config/routes/survos_crawler.yaml @@ -2,6 +2,6 @@ survos_crawler: resource: '@SurvosCrawlerBundle/config/routes.yaml' # consider adding /admin to this route and securing it in security.yaml prefix: '/crawler' - # if you've run symfony proxy:domain:attach my-project, then the error messages will be displayed with this prefix. That way, you can simply click on a link to open the page. + # run symfony proxy:domain:attach my-project, then the error messages will be displayed with this prefix. That way, you can simply click on a link to open the page. # base_url: 'https://my-project.wip/'