[1.11] Promote Zend_View_Helper_Gravatar to trunk - Merged in Zend_View_Helper_Gravatar from incubator - Updated document structure to make it valid
This file contains hidden or 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
| Hi, all. | |
| Currently, ZF2 Alnum/Alpha is under Zend\I18n's. | |
| About alphabet checking is,(アルファベットをチェックすることについて現在のZF2の実装とともにいくつか問題や議論の余地がある) | |
| There is some issue. | |
| - Alnum/Alpha rely on ext_intl(Locale) | |
| - because ja/ka/ch user often think English's Alphabet is theire Alphabet. | |
| そしてpreg's "/u" で日本語などにマッチするのを割けなければいけない。 |
This file contains hidden or 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
| <?php | |
| namespace GyaruMoji; | |
| class Module | |
| { | |
| public function getConfig() | |
| { | |
| return array( | |
| 'service_manager' => array( | |
| 'factories' => array( |
This file contains hidden or 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
| diff --git library/Zend/I18n/Filter/Alnum.php library/Zend/I18n/Filter/Alnum.php | |
| index a18e4e6..c42d5c6 100644 | |
| --- library/Zend/I18n/Filter/Alnum.php | |
| +++ library/Zend/I18n/Filter/Alnum.php | |
| @@ -38,6 +38,7 @@ class Alnum extends AbstractLocale | |
| protected $options = array( | |
| 'locale' => null, | |
| 'allow_white_space' => false, | |
| + 'depend_on_locale' => false, | |
| ); |
This file contains hidden or 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
| <?php | |
| // // 'locale' => 'en_US', | |
| // 'locale' => include __DIR__.'/locale.php', | |
| return call_user_func(function () { | |
| // borrowed from ZF1 Zend_Locale::getBrowser | |
| $localer = function () { | |
| $httplanguages = getenv('HTTP_ACCEPT_LANGUAGE'); | |
| if (empty($httplanguages) && array_key_exists('HTTP_ACCEPT_LANGUAGE', $_SERVER)) { | |
| $httplanguages = $_SERVER['HTTP_ACCEPT_LANGUAGE']; |
This file contains hidden or 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
| <?php | |
| require_once __DIR__.'/library/Zend/Loader/StandardAutoloader.php'; | |
| use Zend\Loader\StandardAutoloader; | |
| use Zend\Filter\StringTrim; | |
| $autoloader = new StandardAutoloader; | |
| $autoloader->register(); | |
| class Before extends StringTrim |
This file contains hidden or 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
| <?php | |
| /** | |
| * server | |
| * $php -S localhost:8080 server.php | |
| */ | |
| use Zend\Http\PhpEnvironment\Response; | |
| use Zend\Http\Header\ContentType; | |
| include 'tests/_autoload.php'; |
This file contains hidden or 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
| <?php | |
| use Goutte\Client; | |
| use Guzzle\Http\Message\Response as GuzzleResponse; | |
| use Symfony\Component\BrowserKit\Response; | |
| use Diggin\Http\Charset\WrapperFactory; | |
| class GoutteWrapper extends Client | |
| { | |
| protected function createResponse(GuzzleResponse $response) | |
| { |
(※以下の内容は思いつきレベルです)
以下の項目は相互運用のためのコンポーネントリポジトリーの標準的な構成です。
- pyrusのgenerate-pear2 の構成、composer・PHP Project Wizard などのデフォルト値を参考にします。
- コンポーネントのソースファイルはプロジェクトのルートディレクトリに
srcディレクトリを作成し、その下にファイル群を格納します。(libやlibrary、VendorNameではありません。) - ユニットテスト一式はプロジェクトのルートディレクトリに
testsディレクトリを作成し、その下にファイル群を格納します。またユニットテストに必要なファイル群(bootstrapなど)もこのディレクトリ下に格納します。テストファイルもPSR-0に準拠するのを推奨します - そのプロジェクトが依存するほかのVendorコンポーネントについては、ルートディレクトリに
vendorディレクトリを作成しその下に配置します。
This file contains hidden or 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
| <?php | |
| namespace Miffie; | |
| use Zend\Stdlib\Parameters as StdlibParameters; | |
| class Parameters extends StdlibParameters | |
| { | |
| public function __invoke($response) |