mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-01-22 12:07:32 +00:00
Update example
[ci skip]
This commit is contained in:
parent
f0804b265e
commit
d5fba6493a
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"require": {
|
||||
"opdavies/gmail-filter-builder": "^1.1"
|
||||
"opdavies/gmail-filter-builder": "3.x-dev"
|
||||
},
|
||||
"scripts": {
|
||||
"generate": "generate-filters"
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
<?php
|
||||
|
||||
use Opdavies\GmailFilterBuilder\Filter;
|
||||
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
use function Opdavies\GmailFilterBuilder\filter;
|
||||
|
||||
return [
|
||||
Filter::create()
|
||||
filter()
|
||||
->from('foo@example.com')
|
||||
->labelAndArchive('Example'),
|
||||
|
||||
Filter::create()
|
||||
filter()
|
||||
->from('bar@example.com')
|
||||
->important(),
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue