Skip to content

Commit

Permalink
fix typo in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasReker committed Aug 30, 2024
1 parent c41752f commit cf0f54e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ echo json_encode($result, \JSON_PRETTY_PRINT);

### Documentation

The constructor initializes the optimizer with the source SVG file and the output file:
The constructor initializes the SVG optimizer with a file provider that specifies the source and output file paths.

```php
$result = new SvgOptimizer('path/to/source.svg', 'path/to/output.svg');
$result = new SvgOptimizer(new FileProvider('path/to/source.svg', 'path/to/output.svg'));
```

`removeTitleAndDesc` Removes `<title>` and `<desc>` tags from the SVG.
Expand Down

0 comments on commit cf0f54e

Please sign in to comment.