Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Jul 31, 2022
1 parent 217f1c4 commit 1cbab5d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 26 deletions.
9 changes: 0 additions & 9 deletions docs/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,3 @@ Read more:

* [Symfony Console Commands](https://symfony.com/doc/current/console.html)
* [Slim 4 - Console](https://odan.github.io/2021/06/23/slim-console.html)

## Managing Locks

Locks are used to guarantee exclusive access to some shared resource.

A lock can be used to ensure that the server starts only one
specific cronjob or console command at the same time.

* [The Lock Component](https://symfony.com/doc/current/components/lock.html)
9 changes: 9 additions & 0 deletions docs/task-scheduling.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,12 @@ There are more, of course.
* <https://github.com/Cron/Cron>
* <https://github.com/peppeocchi/php-cron-scheduler>
* <https://github.com/jobbyphp/jobby>

## Managing Locks

Locks are used to guarantee exclusive access to some shared resource.

A lock can be used to ensure that the server starts only one
specific cronjob or console command at the same time.

* [The Lock Component](https://symfony.com/doc/current/components/lock.html)
8 changes: 4 additions & 4 deletions docs/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ parent: Advanced

All templates are stored in the directory: `templates/`

You can install any compatible template engine like the [Twig View](https://github.com/slimphp/Twig-View)
or the [PHP View](https://github.com/slimphp/PHP-View) package.

## Read more

* [PHP Templates with Slim](https://odan.github.io/2020/12/09/slim4-php-view.html)
* [The slim/php-view package](https://github.com/slimphp/PHP-View)
* [PHP Templates with Slim](https://ko-fi.com/s/5f182b4b22)
* [Slim 4 - Twig](https://ko-fi.com/s/5f182b4b22)
* [Slim 4 - Webpack](https://odan.github.io/2019/09/21/slim4-compiling-assets-with-webpack.html)
* [Webpack - Bootstrap Icons](https://odan.github.io/2021/01/07/webpack-bootstrap-icons.html)
13 changes: 0 additions & 13 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,19 +237,6 @@ $this->mockMethod([UserReaderRepository::class, 'getUserById'])
->willReturn(['example' => 'data']);
```

## Debugging Tests

To debug tests in [PhpStorm](https://www.jetbrains.com/phpstorm/),
you have to mark the `tests/` directory as test sources root.

* Open the project in PhpStorm
* Right-click the directory `tests`
* Select: `Mark directory as`
* Click `Test Sources Root`
* Set a breakpoint within a test method
* Right click `test`
* Click `Debug (tests) PHPUnit`

## Read more

* [Slim 4 - Testing](https://odan.github.io/2020/06/09/slim4-testing.html)

0 comments on commit 1cbab5d

Please sign in to comment.