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, |
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
# -*- 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
{% 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
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
<?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
<?php | |
use Dredd\Hooks; | |
use dredd\DreddHooksHelper; | |
require_once 'DreddHooksHelper.php'; | |
$cookie = null; | |
Hooks::beforeAll(function(&$transaction) use ($cookie){ |
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 | |
/** | |
* Class GovnoCheck | |
*/ | |
class GovnoCheck | |
{ | |
private $value; | |
/** |
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
var previewWidth = 320, // ширина превью | |
previewHeight = 240, // высота превью | |
maxFileSize = 5 * 1024 * 1024, // (байт) Максимальный размер файла (2мб) | |
selectedFiles = {},// объект, в котором будут храниться выбранные файлы | |
queue = [], | |
image = new Image(), | |
imgLoadHandler, | |
isProcessing = false, | |
errorMsg, // сообщение об ошибке при валидации файла | |
previewPhotoContainer = document.querySelector('#preview-photo'), // контейнер, в котором будут отображаться превью |
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('layouts.app') | |
@section('content') | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-9"> | |
<div class="panel panel-default"> | |
<div class="panel-heading">Create New Test</div> | |
<div class="panel-body"> | |
<a href="{{ url('/home') }}" title="Back"><button class="btn btn-warning btn-xs"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back</button></a> |
OlderNewer