-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - added "session_key" config (#1) - added "session_key" config (#1) - added "allowed_utm_parameter" config - added tests * - added facade - added more tests - code rework - added config - added more helper-functions * Apply fixes from StyleCI --------- Co-authored-by: StyleCI Bot <bot@styleci.io>
- Loading branch information
1 parent
aefb89e
commit 137d0be
Showing
8 changed files
with
98 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace Suarez\StatamicUtmParameters\Facades; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
/** | ||
* @method static \Suarez\StatamicUtmParameters\UtmParameter boot(\Illuminate\Http\Request $request) | ||
* @method static array useRequestOrSession(\Illuminate\Http\Request $request) | ||
* @method static array all() | ||
* @method static string|null get(string $key) | ||
* @method static bool has(string $key, $value = null) | ||
* @method static bool contains(string $key, string $value) | ||
* @method static bool clear() | ||
* @method static array getParameter(\Illuminate\Http\Request $request) | ||
* @method static string ensureUtmPrefix(string $key) | ||
* | ||
* @see \Suarez\StatamicUtmParameters\UtmParameter | ||
*/ | ||
class UtmParameter extends Facade | ||
{ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return \Suarez\StatamicUtmParameters\UtmParameter::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters