@@ -7,20 +7,20 @@ Run `composer require p-chess/chess-bundle`
77## Configuration
88
99Create a service that extends ` PChess\ChessBundle\HtmlOutput ` and
10- implements required methods.
11- You probably want to inject Symfony's router service here, and use it
12- to return required URLs.
10+ implement the required methods.
11+ You probably want to inject Symfony's router service here and use it
12+ to return the required URLs.
1313Note that each route can be provided with an identifier for your game.
1414
15- Create a configuration file, and use a content like the following:
15+ Create a configuration file, and use content like the following:
1616
1717``` yaml
1818# config/packages/chess.yaml
1919chess :
2020 output_service : App\YourOutputService
2121` ` `
2222
23- This is an example of how routes can be defined (using an "id" parameter as identifier):
23+ This is an example of how routes can be defined (using an "id" parameter as an identifier):
2424
2525` ` ` yaml
2626# config/routes.yaml
@@ -52,11 +52,11 @@ move_end:
5252You can inject a service implementing ` \PChess\ChessBundle\ChessProviderInterface` in your controller, then
5353implement different actions, using provided `\PChess\Chess\Chess` object.
5454
55- In your template, you can use Twig function `chess_render(chess)` to render the board.
55+ In your template, you can use the Twig function `chess_render(chess)` to render the board.
5656If you need to pass an identifier, use `chess_render(chess, identifier)` instead.
5757
5858The main service you can use is `\PChess\ChessBundle\SessionChessProvider`.
59- This service allows you to keep chess games in session, providing following methods :
59+ This service allows you to keep chess games in session, providing the following methods :
6060
6161* `getChess($identifier, $fen)` to get main `\PChess\Chess\Chess` instance (as provided by interface)
6262* `restart($identifier)` to restart the game
@@ -68,7 +68,7 @@ Using `$identifier` is not mandatory.
6868
6969# ## Styling
7070
71- You can use provided `_board.scss` file to style the board :
71+ You can use the provided `_board.scss` file to style the board :
7272
7373` @import '~@p-chess/chess-bundle/scss/board';`
7474
0 commit comments