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
$targetValues = []; | |
$crawler->filter("input[name='target[]']")->each(function(Crawler $target) use (&$targetValues){ | |
$targetValues[] = $target->attr('value'); | |
}); | |
var_dump($targetValues); |
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
$elements = $crawler->filter("input[name='target[]']"); | |
foreach($elements as $element){ | |
print get_class($element); | |
} |
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
doctrine: | |
dbal: | |
driver: "%database_driver%" | |
host: "%database_host%" | |
port: "%database_port%" | |
dbname: "%database_name%" | |
user: "%database_user%" | |
password: "%database_password%" | |
#Remove this (version) when we have a real database. This is just a temporary fix to avoid errors in prod | |
server_version: "5.2" |
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
templating: | |
engines: ['twig'] | |
hinclude_default_template: 'Layouts/loading.html.twig' | |
assets_base_urls: | |
http: [ /symfony ] | |
ssl: [ /symfony ] |
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 loadUserByUsername($username) | |
{ | |
return new User($username); | |
} | |
/** | |
* {@inheritdoc} | |
*/ | |
public function loadUserByOAuthUserResponse(UserResponseInterface $response) | |
{ |
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
/** | |
* @Route("/mini-api") | |
* @Method("POST") | |
*/ | |
class ApiController extends Controller | |
{ | |
/** | |
* @Route("/customer/create.{_format}", name="mini-api_customer_create", requirements={ | |
"_format" : "json" | |
* }) |
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
->add('email', 'email', [ | |
'constraints' => [ | |
new NotBlank(), | |
new Email(), | |
] | |
]) |
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
->add('currency', 'text', [ | |
'constraints' => [ | |
new NotBlank(), | |
new Choice(['choices' => ['EUR', 'SEK']]), | |
] | |
]) |
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
->add('account', 'text', [ | |
'constraints' => [ | |
new NotBlank(), | |
new Type('string'), | |
new Regex("/^XX\d+$/i") | |
] | |
]) |
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
$killmail = $this->getDoctrine()->getRepository('AppBundle:Killmail\Killmail')->findWithAllData($id); | |
$killmail2 = $this->getDoctrine()->getRepository('AppBundle:Killmail\Killmail')->find(47017875); |
OlderNewer