Skip to content

Commit 10bbf85

Browse files
Merge pull request #5 from dutchenkoOleg/master
2.x
2 parents 3576c5b + 3ae1a49 commit 10bbf85

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,28 @@ composer require wezom-agency/browserizr
2020

2121
---
2222

23+
## Initalize
24+
25+
> _* since 2.x version_
26+
> ___You must initialize the Browserizr before to use it___
27+
28+
```php
29+
<?php
30+
31+
// your app start code
32+
// ...
33+
use WezomAgency\Browserizr;
34+
35+
// initialize Browserizr
36+
Browserizr::detect();
37+
38+
// use Browserizr in your app
39+
// ...
40+
?>
41+
```
42+
43+
---
44+
2345
## API
2446

2547
### List of built-in tests

src/WezomAgency/Browserizr.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,3 @@ public static function detect($custom_user_agent = null)
136136
self::$is_desktop = !self::$is_mobile;
137137
}
138138
}
139-
140-
// initial checkout
141-
Browserizr::detect();

0 commit comments

Comments
 (0)