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 Acme\DemoBundle\Form\Type; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilder; | |
class PictureType extends AbstractType | |
{ | |
public function buildForm(FormBuilder $builder, array $options) | |
{ |
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 | |
// Plese check https://github.com/zendframework/zf2/blob/master/library/Zend/Locale/Data/Cldr.php for more information | |
Zend\Locale\Data\Cldr::getList('en', 'territorytolanguage'); |
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 a/composer.json b/composer.json | |
index ab850d0..5d71304 100644 | |
--- a/composer.json | |
+++ b/composer.json | |
@@ -1,4 +1,18 @@ | |
{ | |
+ "repositories": [ | |
+ { | |
+ "type": "package", | |
+ "package": { |
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
installArchives() failed: (Reading database ... | |
(Reading database ... 5%% | |
(Reading database ... 10%% | |
(Reading database ... 15%% | |
(Reading database ... 20%% | |
(Reading database ... 25%% | |
(Reading database ... 30%% | |
(Reading database ... 35%% | |
(Reading database ... 40%% | |
(Reading database ... 45%% |
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 | |
/** | |
* @Assert\Callback(methods={"validateFile"}) | |
*/ | |
class File | |
{ | |
public function validateFile(ExecutionContext $context) | |
{ | |
if (null !== $this->getId()) { |
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 | |
/** | |
* @Assert\Callback(methods={"validateFile"}) | |
*/ | |
class File | |
{ | |
public function validateFile(ExecutionContext $context) | |
{ | |
if (null !== $this->getId()) { |
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
object(stdClass)[757] | |
public '__CLASS__' => string 'Symfony\Component\Security\Core\SecurityContext' (length=47) | |
public 'token' => | |
object(stdClass)[736] | |
public '__CLASS__' => string 'Symfony\Component\Security\Core\Authentication\Token\RememberMeToken' (length=68) | |
public 'key' => string 'eUodAjYEzDza72' (length=14) | |
public 'providerKey' => string 'main' (length=4) | |
public 'accessDecisionManager' => | |
object(stdClass)[739] | |
public '__CLASS__' => string 'Symfony\Component\Security\Core\Authorization\AccessDecisionManager' (length=67) |
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 | |
$this->share($this->extend('form.factory', function (FormFactoryInterface $factory) { | |
$factory->addType(new MyType()); | |
return $factory; | |
})); |
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 Zymfony\Component\Validator\Constraint; | |
class ZymfonyModel | |
{ | |
/** | |
* @Constraint(validator = "creditcard") | |
*/ | |
protected $creditCard; |
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
$ pactl list sources | |
Source #0 | |
State: SUSPENDED | |
Name: alsa_output.pci-0000_00_07.0.analog-stereo.monitor | |
Description: Monitor of Built-in Audio Analog Stereo | |
Driver: module-alsa-card.c | |
Sample Specification: s16le 2ch 44100Hz | |
Channel Map: front-left,front-right | |
Owner Module: 4 | |
Mute: no |