Skip to content

Commit

Permalink
Fixed readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryangr0 committed Nov 14, 2024
1 parent 234cefe commit c0f47ac
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#prerequisites
# Prerequisites

- PHP 8.2
- Composer


# How to use

### Serviceprovider
Expand Down Expand Up @@ -56,13 +55,11 @@ class Foo
}
```


### Using attributes
> You can add the attribute 'Webgrip\TelemetryService\Core\Domain\Services\Traceable' to your class to automatically trace all methods of the class
> You can also use this attribute to trace a single method
```php

#[\Webgrip\TelemetryService\Core\Domain\Attributes\Traceable]
class Foo
{
Expand All @@ -78,9 +75,8 @@ class Foo
}
}
```
}


```php
// DI configuration
return [
Foo::class => function (\DI\Container $container) {
Expand Down

0 comments on commit c0f47ac

Please sign in to comment.