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 dredd; | |
use Symfony\Component\BrowserKit\Cookie; | |
use Symfony\Component\HttpFoundation\Session\Session; | |
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; | |
use AppBundle\Entity\User; | |
use FOS\UserBundle\Doctrine\UserManager; | |
/** |
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
private function getCookie() | |
{ | |
$container = $this->getContainer(); | |
$session = $container->get('session'); | |
/** @var $userManager \FOS\UserBundle\Doctrine\UserManager */ | |
$userManager = $container->get('fos_user.user_manager'); | |
/** @var $loginManager \FOS\UserBundle\Security\LoginManager */ | |
$loginManager = $container->get('fos_user.security.login_manager'); | |
$firewallName = $container->getParameter('fos_user.firewall_name'); |
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
{% extends "WebSocketClientBundle::layout.html.twig" %} | |
{% block content %} | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<div class="panel panel-default" id="panelChat" style="overflow-y: auto;"> | |
<div class="panel-body" > | |
</div> | |
</div> | |
<div class="form-group"> |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = '2' | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = 'trusty64' | |
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box" | |
#config.vm.network :public_network, ip: '192.168.223.13' |
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
[1] Symfony\Component\Debug\Exception\FatalThrowableError: Fatal error: Class 'ApiBundle\Service\HotelDetails\Bidstays\TravelGuruRoomBidLimitsMapper' not found | |
at n/a | |
in /var/www/html/fairstays/app/cache/dev/appDevDebugProjectContainer.php line 1046 | |
at appDevDebugProjectContainer->getApi_Service_HotelDetailsClientBidstaysService() | |
in /var/www/html/fairstays/app/bootstrap.php.cache line 2172 | |
at Symfony\Component\DependencyInjection\Container->get('api.service.hotel_details_client_bidstays') | |
in /var/www/html/fairstays/app/cache/dev/appDevDebugProjectContainer.php line 910 |
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
{ | |
"hotels": [ | |
{ | |
"code": "IT56NG", | |
"name": "Barberini Hotel", | |
"address_line1": "Via Rasella 3", | |
"city": "Rome", | |
"star": 4, | |
"latitude": 41.9029, | |
"longitude": 12.4891, |
NewerOlder