Skip to content

Commit

Permalink
Merge 77a1251 into c38bbdb
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI committed Feb 5, 2020
2 parents c38bbdb + 77a1251 commit 59a978c
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 6 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on: [push, pull_request]
name: Lint
jobs:
doctor-rst:
name: DOCtor-RST
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: DOCtor-RST
uses: docker://oskarstark/doctor-rst
with:
args: --short
env:
DOCS_DIR: 'docs/'
4 changes: 2 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
days-before-stale: 180
repo-token: "${{ secrets.GITHUB_TOKEN }}"
exempt-issue-label: "keep"
stale-issue-label: "pending author"
stale-issue-label: "stale"
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
stale-pr-label: "pending author"
stale-pr-label: "stale"
stale-pr-message: >
This PR has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
Expand Down
32 changes: 32 additions & 0 deletions docs/.doctor-rst.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
rules:
blank_line_after_directive: ~
short_array_syntax: ~
typo: ~
replacement: ~
composer_dev_option_at_the_end: ~
yarn_dev_option_at_the_end: ~
versionadded_directive_should_have_version: ~
no_composer_req: ~
no_php_open_tag_in_code_block_php_directive: ~
blank_line_after_filepath_in_code_block: ~
no_php_prefix_before_bin_console: ~
use_deprecated_directive_instead_of_versionadded: ~
no_space_before_self_xml_closing_tag: ~
no_explicit_use_of_code_block_php: ~
ensure_order_of_code_blocks_in_configuration_block: ~
american_english: ~
valid_use_statements: ~
yaml_instead_of_yml_suffix: ~
extend_abstract_admin: ~
final_admin_class: ~
final_admin_extension_classes: ~
no_admin_yaml: ~
no_bash_prompt: ~
no_composer_phar: ~
no_inheritdoc: ~

# can be enabled when no Symfony 3.4 support anymore
#no_app_bundle: ~
#no_config_yaml: ~
#kernel_instead_of_app_kernel: ~
#no_app_console: ~
6 changes: 2 additions & 4 deletions docs/reference/page_services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ return a Response object. At this stage, the page service works a little bit lik
For example, a simple implementation of a page service is to render the page. Normally, you could simply inject the
templating engine and use it to render a Response object, just as you would do in a standard Controller. However, pages
can be configured to use a particular template. Therefore, to render a page, you need to retrieve the page's configured
template. This can be easily achieved by using the template manager service.

.. code-block:: php
template. This can be easily achieved by using the template manager service::

// src/App/Service/CustomPageService.php

Expand Down Expand Up @@ -59,7 +57,7 @@ it as being a page service:
<service id="app.custom_page_service" class="App\Service\CustomPageService">
<argument>Custom page service</argument>
<argument type="service" id="sonata.page.template_manager" />
<argument type="service" id="sonata.page.template_manager"/>
<tag name="sonata.page"/>
</service>
Expand Down

0 comments on commit 59a978c

Please sign in to comment.