forked from serbanghita/Mobile-Detect
-
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.
Updated future version number. Related to discussion at serbanghita#137
- Loading branch information
1 parent
59400d0
commit 71f6c8b
Showing
5 changed files
with
861 additions
and
881 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
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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<?php | ||
/** | ||
* Little piece of PHP to make Mobile_Detect auto-loadable in PSR-0 compatible PHP autoloaders like | ||
* the Symfony Universal ClassLoader by Fabien Potencier. Since PSR-0 handles an underscore in | ||
* classnames (on the filesystem) as a slash, "Mobile_Detect.php" autoloaders will try to convert | ||
* the classname and path to "Mobile\Detect.php". This script will ensure autoloading with: | ||
* - Namespace: Detection | ||
* - Classname: MobileDetect | ||
* - Namespased: \Detection\MobileDetect | ||
* - Autoload path: ./namespaced | ||
* - Converted path: ./namespaced/Detection/MobileDetect.php | ||
* | ||
* Don't forget to use MobileDetect (instead of Mobile_Detect) as class in code when autoloading. | ||
* | ||
* Thanks to @WietseWind. | ||
* For details please check: https://github.com/serbanghita/Mobile-Detect/pull/120 | ||
*/ | ||
|
||
namespace Detection; | ||
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Mobile_Detect.php'; | ||
|
||
class MobileDetect extends \Mobile_Detect {} | ||
<?php | ||
/** | ||
* Little piece of PHP to make Mobile_Detect auto-loadable in PSR-0 compatible PHP autoloaders like | ||
* the Symfony Universal ClassLoader by Fabien Potencier. Since PSR-0 handles an underscore in | ||
* classnames (on the filesystem) as a slash, "Mobile_Detect.php" autoloaders will try to convert | ||
* the classname and path to "Mobile\Detect.php". This script will ensure autoloading with: | ||
* - Namespace: Detection | ||
* - Classname: MobileDetect | ||
* - Namespased: \Detection\MobileDetect | ||
* - Autoload path: ./namespaced | ||
* - Converted path: ./namespaced/Detection/MobileDetect.php | ||
* | ||
* Don't forget to use MobileDetect (instead of Mobile_Detect) as class in code when autoloading. | ||
* | ||
* Thanks to @WietseWind. | ||
* For details please check: https://github.com/serbanghita/Mobile-Detect/pull/120 | ||
*/ | ||
|
||
namespace Detection; | ||
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Mobile_Detect.php'; | ||
|
||
class MobileDetect extends \Mobile_Detect {} |
Oops, something went wrong.