Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from creative-commoners/pulls/2.0/fix-basic-auth
FIX Update BasicAuth call signature, remove deprecated code and update getenv
- Loading branch information
Showing
11 changed files
with
130 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/tests export-ignore | ||
/docs export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/.scrutinizer.yml export-ignore | ||
/codecov.yml export-ignore | ||
/phpunit.xml.dist export-ignore |
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,23 +1,70 @@ | ||
<?php | ||
|
||
// use SilverStripe\EnvironmentCheck\EnvironmentCheckSuite; | ||
|
||
// // These power dev/health, which can be used by load balancers and other such systems | ||
// EnvironmentCheckSuite::register('health', 'DatabaseCheck'); | ||
|
||
// // These power dev/check, which is used for diagnostics and for deployment | ||
// EnvironmentCheckSuite::register('check', 'DatabaseCheck("Member")', "Is the database accessible?"); | ||
// EnvironmentCheckSuite::register('check', 'URLCheck("")', "Is the homepage accessible?"); | ||
|
||
// EnvironmentCheckSuite::register('check', 'HasFunctionCheck("curl_init")', "Does PHP have CURL support?"); | ||
// EnvironmentCheckSuite::register('check', 'HasFunctionCheck("imagecreatetruecolor")', "Does PHP have GD2 support?"); | ||
// EnvironmentCheckSuite::register('check', 'HasFunctionCheck("xml_set_object")', "Does PHP have XML support?"); | ||
// EnvironmentCheckSuite::register('check', 'HasFunctionCheck("token_get_all")', "Does PHP have tokenizer support?"); | ||
// EnvironmentCheckSuite::register('check', 'HasFunctionCheck("iconv")', "Does PHP have iconv support?"); | ||
// EnvironmentCheckSuite::register('check', 'HasFunctionCheck("hash")', "Does PHP have hash support?"); | ||
// EnvironmentCheckSuite::register('check', 'HasFunctionCheck("session_start")', "Does PHP have session support?"); | ||
// EnvironmentCheckSuite::register('check', 'HasClassCheck("DOMDocument")', "Does PHP have DOMDocument support?"); | ||
|
||
// EnvironmentCheckSuite::register('check', 'FileWriteableCheck("assets")', "Is assets/ writeable?"); | ||
// EnvironmentCheckSuite::register('check', 'FileWriteableCheck("' . TEMP_FOLDER . '")', "Is the temp folder writeable?"); | ||
|
||
// | ||
//use SilverStripe\EnvironmentCheck\EnvironmentCheckSuite; | ||
// | ||
//// These power dev/health, which can be used by load balancers and other such systems | ||
//EnvironmentCheckSuite::register('health', 'DatabaseCheck'); | ||
// | ||
//// These power dev/check, which is used for diagnostics and for deployment | ||
//EnvironmentCheckSuite::register('check', 'DatabaseCheck("Member")', "Is the database accessible?"); | ||
//EnvironmentCheckSuite::register('check', 'URLCheck("")', "Is the homepage accessible?"); | ||
// | ||
//EnvironmentCheckSuite::register( | ||
// 'check', | ||
// 'HasFunctionCheck("curl_init")', | ||
// "Does PHP have CURL support?" | ||
//); | ||
// | ||
//EnvironmentCheckSuite::register( | ||
// 'check', | ||
// 'HasFunctionCheck("imagecreatetruecolor")', | ||
// "Does PHP have GD2 support?" | ||
//); | ||
// | ||
//EnvironmentCheckSuite::register( | ||
// 'check', | ||
// 'HasFunctionCheck("xml_set_object")', | ||
// "Does PHP have XML support?" | ||
//); | ||
// | ||
//EnvironmentCheckSuite::register( | ||
// 'check', | ||
// 'HasFunctionCheck("token_get_all")', | ||
// "Does PHP have tokenizer support?" | ||
//); | ||
// | ||
//EnvironmentCheckSuite::register( | ||
// 'check', | ||
// 'HasFunctionCheck("iconv")', | ||
// "Does PHP have iconv support?" | ||
//); | ||
// | ||
//EnvironmentCheckSuite::register( | ||
// 'check', | ||
// 'HasFunctionCheck("hash")', | ||
// "Does PHP have hash support?" | ||
//); | ||
// | ||
//EnvironmentCheckSuite::register( | ||
// 'check', | ||
// 'HasFunctionCheck("session_start")', | ||
// "Does PHP have session support?" | ||
//); | ||
// | ||
//EnvironmentCheckSuite::register( | ||
// 'check', | ||
// 'HasClassCheck("DOMDocument")', | ||
// "Does PHP have DOMDocument support?" | ||
//); | ||
// | ||
//EnvironmentCheckSuite::register( | ||
// 'check', | ||
// 'FileWriteableCheck("assets")', | ||
// "Is assets/ writeable?" | ||
//); | ||
// | ||
//EnvironmentCheckSuite::register( | ||
// 'check', | ||
// 'FileWriteableCheck("' . TEMP_FOLDER . '")', | ||
// "Is the temp folder writeable?" | ||
//); |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ruleset name="SilverStripe"> | ||
<description>CodeSniffer ruleset for SilverStripe coding conventions.</description> | ||
|
||
<rule ref="PSR2" > | ||
<!-- Current exclusions --> | ||
<exclude name="PSR1.Methods.CamelCapsMethodName" /> | ||
</rule> | ||
</ruleset> |
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