@@ -25,7 +25,7 @@ Sign a URL.
2525
2626``` php
2727// File in root directory.
28- bunnyTokenAuthentication->sign(
28+ $ bunnyTokenAuthentication->sign(
2929 file: '/bunny.jpg',
3030 expirationTime: 3600,
3131 userIp: null,
@@ -39,33 +39,33 @@ bunnyTokenAuthentication->sign(
3939);
4040
4141// File in subdirectory.
42- $tokenAuthentication ->sign(
42+ $bunnyTokenAuthentication ->sign(
4343 file: '/css/custom.css',
4444);
4545
4646// Change expiration time.
47- $tokenAuthentication ->sign(
47+ $bunnyTokenAuthentication ->sign(
4848 file: '/css/custom.css',
4949 expirationTime: 10,
5050);
5151
5252// With IPv4 and not allowing associated subnet.
53- $tokenAuthentication ->sign(
53+ $bunnyTokenAuthentication ->sign(
5454 file: '/css/custom.css',
5555 userIp: '12.345.67.89',
5656 allowSubnet: false
5757);
5858
5959// With directory token enabled and path specified for video streaming.
60- $tokenAuthentication ->sign(
60+ $bunnyTokenAuthentication ->sign(
6161 file: '/videos/cute-bunnies/playlist.m3u8',
6262 userIp: '12.345.67.89',
6363 isDirectoryToken: true,
6464 pathAllowed: '/videos/cute-bunnies',
6565);
6666
6767// Allow or block certain countries, e.g. allow "US" and block "RU".
68- $tokenAuthentication ->sign(
68+ $bunnyTokenAuthentication ->sign(
6969 file: '/videos/cute-bunnies/playlist.m3u8',
7070 userIp: '12.345.67.89',
7171 isDirectoryToken: true,
@@ -75,7 +75,7 @@ $tokenAuthentication->sign(
7575);
7676
7777// Allow from specific referrer.
78- $tokenAuthentication ->sign(
78+ $bunnyTokenAuthentication ->sign(
7979 file: '/videos/cute-bunnies/playlist.m3u8',
8080 userIp: '12.345.67.89',
8181 isDirectoryToken: true,
@@ -84,7 +84,7 @@ $tokenAuthentication->sign(
8484);
8585
8686// Limit the download speed limit to 5 Mb/s.
87- $tokenAuthentication ->sign(
87+ $bunnyTokenAuthentication ->sign(
8888 file: '/videos/cute-bunnies/playlist.m3u8',
8989 userIp: '12.345.67.89',
9090 isDirectoryToken: true,
0 commit comments