Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial version for survos/command-bundle #1548

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions survos/command-bundle/1.5/config/packages/survos_command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
survos_command:
# expose app:my-command, etc.
namespaces: [app]

9 changes: 9 additions & 0 deletions survos/command-bundle/1.5/config/routes/survos_command.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;

return static function (RoutingConfigurator $routes): void {
$routes->import('@SurvosCommandBundle/config/routes.php')
->prefix('/admin') // consider adding this path to the access_control key in security
;
tacman marked this conversation as resolved.
Show resolved Hide resolved
};

9 changes: 9 additions & 0 deletions survos/command-bundle/1.5/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"bundles": {
"Survos\\CommandBundle\\SurvosCommandBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}

8 changes: 8 additions & 0 deletions survos/command-bundle/1.5/post-install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<bg=green;fg=white> </>
<bg=green;fg=white> success </>
<bg=green;fg=white> </>

* <fg=yellow>Next steps:</>
1. Configure /config/packages/survos_command.php to expose the namespaces (command prefixes)
2. <comment>secure the /admin route, configure the route in config/routes/survos_command.php</>;
3. Visit <comment>/admin/commmands</>.
9 changes: 9 additions & 0 deletions survos/crawler-bundle/1.5/config/packages/survos_crawler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
survos_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/'
user_class: App\Entity\User
users:
- [email protected]

Check failure on line 6 in survos/crawler-bundle/1.5/config/packages/survos_crawler.yaml

View workflow job for this annotation

GitHub Actions / call-qa / Run checks

Indendation must be a multiple of 4 spaces
max_depth : 3
routes_to_ignore :
- 'app_logout'
9 changes: 9 additions & 0 deletions survos/crawler-bundle/1.5/config/routes/survos_crawler.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?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
;
};

9 changes: 9 additions & 0 deletions survos/crawler-bundle/1.5/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"bundles": {
"Survos\\CrawlerBundle\\SurvosCrawlerBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}

8 changes: 8 additions & 0 deletions survos/crawler-bundle/1.5/post-install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<bg=green;fg=white> </>
<bg=green;fg=white> success </>
<bg=green;fg=white> </>

* <fg=yellow>Next steps:</>
1. Configure /config/packages/survos_crawler.php and add the users and routes to ignore
2. Run symfony console survos:crawl
3. Visit <comment>/admin/crawler-results</>.
Loading