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 App\Service; | |
class ProductService | |
{ | |
private $mailTransport; | |
private $productRepository; |
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 Doctrine\Common\Collections\ArrayCollection; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\Extension\Core\Type\CheckboxType; | |
use Symfony\Component\Form\Extension\Core\Type\ChoiceType; | |
use Symfony\Component\Form\Extension\Core\Type\PasswordType; | |
use Symfony\Component\Form\Extension\Core\Type\RepeatedType; |
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 'vendor/autoload.php'; | |
use Xtreamwayz\HTMLFormValidator\Validator\RecaptchaValidator; | |
use Zend\Filter\FilterPluginManager; | |
use Zend\InputFilter\Factory; | |
use Zend\InputFilter\InputFilterPluginManager; | |
use Zend\ServiceManager\Config; | |
use Zend\ServiceManager\ServiceManager; |
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 dumpVersionsClass(Event $composerEvent) | |
{ | |
$io = $composerEvent->getIO(); | |
$io->write('<info>Generating version class...</info>'); | |
$composer = $composerEvent->getComposer(); | |
// Get root package | |
$rootPackage = $composer->getPackage(); |
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 Zend\Stdlib\ArrayUtils; | |
use Zend\Stdlib\Glob; | |
$cachedConfigFile = 'data/cache/app_config.php'; | |
$configLocations = [ | |
// Load default config | |
'config/autoload/{{,*.}global,{,*.}local}.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 | |
/** | |
* Configuration for doctrine cli. | |
* | |
* This file is auto detected and used by doctrine cli. | |
*/ | |
use Doctrine\ORM\Tools\Console\ConsoleRunner; | |
use Doctrine\ORM\EntityManager; |
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 | |
// Delegate static file requests back to the PHP built-in webserver | |
if (php_sapi_name() === 'cli-server' | |
&& is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)) | |
) { | |
return false; | |
} | |
chdir(dirname(__DIR__)); |
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
#!/usr/bin/php | |
<?php | |
$qa = new QualityAssuranceChecks(); | |
$qa->run(); | |
/** | |
* Recommit last commit for testing: | |
* | |
* git reset --soft HEAD~1 && git commit -am "Last commit" |
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 Pimple; | |
use Pimple\Container as Pimple; | |
use Interop\Container\ContainerInterface; | |
/** | |
* ContainerInterface wrapper for Pimple 3.0 | |
*/ |
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 Application\Action; | |
use Interop\Container\ContainerInterface; | |
use Psr\Http\Message\ResponseInterface; | |
use Psr\Http\Message\ServerRequestInterface; | |
use Zend\Expressive\Template\TemplateInterface; | |
use Zend\Stratigility\MiddlewareInterface; |