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
| public static function from( | |
| $addressee = null, | |
| $street = null, | |
| string $streetOrdinality = null, | |
| string $streetOrdinalitySuffix = null, | |
| string $postalCode = null, | |
| string $populatedPlace = null, | |
| string $country = null, | |
| string $countryRegion = null, | |
| string $geoLocation = null |
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
| _getFormatter: (format) => { | |
| let formatter = this.getWithDefault(`converters.${format}`, false); | |
| if (false === formatter) { | |
| throw `unknown formatter`; | |
| } | |
| return formatter; | |
| }, |
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
| sideSidebarCollapse: true, | |
| actions: { | |
| toggleSidebarCollapse() { | |
| this.toggleProperty('sideSidebarCollapse'); | |
| } | |
| } |
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
| $mock->expects($this->any()) | |
| ->method('doSomething') | |
| ->with($valueCreatedInsideTestedObject) | |
| ->willReturn($valueCreatedInsideTestedObject); |
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
| private $property; | |
| public function method() | |
| { | |
| $token = new self(); | |
| $token->property = 'something'; // feels like a violation of the private accessor, but indeed it is not.... | |
| } |
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
| /** | |
| * A alternative to the above; | |
| * ./vendor/bin/doctrine.php won't work, but you can add more commands shown as here with the migration tasks | |
| */ | |
| // ./bin/doctrine.php | |
| <?php | |
| /* | |
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
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
| public function hasUse($use) | |
| { | |
| $uses = array_values($this->uses); | |
| foreach($this->uses as $key=>$value) { | |
| $parts = explode(' ', $value); | |
| if ($parts[0] === $use) { | |
| return true; | |
| } | |
| } |
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 ZfcRbac\Middleware; | |
| use Psr\Http\Message\ResponseInterface; | |
| use Psr\Http\Message\ServerRequestInterface; | |
| use Zend\Authentication\AuthenticationService; | |
| use Zend\Stratigility\MiddlewareInterface; | |
| class ZendAuthenticationServiceMiddleware implements MiddlewareInterface |
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
| class SomePluginManager extends AbstractPluginManager | |
| { | |
| /** | |
| * @var array | |
| */ | |
| protected $invokableClasses = [ | |
| 'ZfcRbac\Role\InMemoryRoleProvider' => 'ZfcRbac\Role\InMemoryRoleProvider' | |
| ]; | |
| } |
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
| --- | |
| - name: mysql | s3 import | apt packages | |
| apt: name={{ item }} state=present | |
| with_items: | |
| - unzip | |
| - python-pip | |
| - name: mysql | s3 import | pip packages | |
| pip: name={{ item }} state=present |