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

Update README.md #6

Merged
merged 1 commit into from
Aug 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions .docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ extensions:
scheduler: Contributte\Scheduler\DI\SchedulerExtension
```

Set-up crontab. Use `scheduler:run` command.
Set-up crontab. Use the `scheduler:run` command.

```
* * * * * php path-to-project/console scheduler:run
```

Optionally you can set temp path for lock files.
Optionally, you can set a temp path for storing lock files.

```yaml
scheduler:
Expand Down Expand Up @@ -51,7 +51,7 @@ Cron expression:

### Custom job

Use `IJob` interface. Every job is registered as service in DIC, so you can use other services.
Use the `IJob` interface. Every job is registered as a service in the DIC, so you can use other services.

```php

Expand All @@ -69,7 +69,7 @@ class MyAwesomeJob implements IJob
public function isDue(DateTime $dateTime): bool
{
//$this->database->...
return TRUE; // When is job ready to run
return TRUE; // When the job is ready to run
}

public function run(): void
Expand All @@ -81,7 +81,7 @@ class MyAwesomeJob implements IJob

```

And don't forget register it.
And don't forget to register it.

```yaml
scheduler:
Expand Down