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
# Path to your oh-my-zsh configuration. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
export ZSH_THEME="robbyrussell" | |
# Set to this to use case-sensitive completion |
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
<?php | |
/** | |
* Base version of the method | |
* @see http://www.php.net/manual/de/function.vsprintf.php#110666 | |
* | |
* Like vsprintf, but accepts $args keys instead of order index. | |
* Both numeric and strings matching /[a-zA-Z0-9_-]+/ are allowed. | |
* | |
* @example: vskprintf('y = %y$d, x = %x$1.1f, key = %key$s', array('x' => 1, 'y' => 2, 'key' => 'MyKey')) |
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
server { | |
listen 80; | |
server_name localhost; | |
root /home/website/web; | |
rewrite ^/app\.php/?(.*)$ /$1 permanent; | |
try_files $uri @rewriteapp; | |
location @rewriteapp { |
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
<?php | |
namespace Application\Sonata\MediaBundle\Listener; | |
use Application\Sonata\MediaBundle\Entity\Media; | |
use Doctrine\ORM\Event\LifecycleEventArgs; | |
use Sonata\MediaBundle\Provider\MediaProviderInterface; | |
use Sonata\MediaBundle\Provider\Pool; | |
use Symfony\Component\DependencyInjection\ContainerInterface; |
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
<?php | |
/** | |
* @var string | |
* | |
* @ORM\Column(name="email", type="string", length=255) | |
* | |
* @Assert\Email(groups={"registration"}, message="Ungültige Email-Adresse.") | |
* @Assert\NotBlank(groups={"registration"}, message="Email-Adresse darf nicht leer sein.") | |
*/ |
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
{ | |
"name": "oskar.stark/acd2", | |
"license": "proprietary", | |
"type": "project", | |
"autoload": { | |
"psr-4": { | |
"AppBundle\\": "src/AppBundle" | |
}, | |
"classmap": [ | |
"app/AppKernel.php", |
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
{ | |
"name": "oskar.stark/acd2", | |
"license": "proprietary", | |
"type": "project", | |
"autoload": { | |
"psr-4": { | |
"AppBundle\\": "src/AppBundle" | |
}, | |
"classmap": [ | |
"app/AppKernel.php", |
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
<?php | |
namespace AppBundle\DependencyInjection\Compiler; | |
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
/** | |
* @author Oskar Stark <[email protected]> | |
*/ |
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
<?php | |
namespace App\Tests\Behat\Context; | |
use Behat\Behat\Context\Context; | |
use Behat\Behat\Hook\Scope\BeforeScenarioScope; | |
use Behatch\Context\RestContext; | |
use Lexik\Bundle\JWTAuthenticationBundle\Services\JWTManager; | |
use Sonata\UserBundle\Model\UserManagerInterface; | |
use Symfony\Component\Security\Core\User\UserInterface; |
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
<?php | |
namespace App\Validator\Constraints\Luna; | |
use Symfony\Component\Validator\Constraint; | |
/** | |
* @Annotation | |
*/ | |
class MaxOrderQuantityCancelled extends Constraint |
OlderNewer