Skip to content

Instantly share code, notes, and snippets.

var coord = $("#objmap").html();
var coords = jQuery.parseJSON(coord);
ymaps.ready(init);
var myMap;
function init(){
myMap = new ymaps.Map ("map", {
<?php
require_once __DIR__.'/../vendor/autoload.php';
require_once __DIR__.'/../src/app/UserProvider.php';
use Silex\Provider\FormServiceProvider;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\User;
<?php
require_once __DIR__.'/../vendor/autoload.php';
$app = new Silex\Application();
$app['debug'] = true;
$app->register(new Silex\Provider\DoctrineServiceProvider(), array(
***
$app->register(new Silex\Provider\SecurityServiceProvider(), array(
'security.firewalls' => array(
'login' => array(
'pattern' => '^/login$',
'anonymous' => true,
),
'login' => array(
'pattern' => '^/$',
'anonymous' => true,
),
@Shapit0
Shapit0 / app
Created December 3, 2013 16:45
<?php
require_once __DIR__.'/../vendor/autoload.php';
$app = new Silex\Application();
$app['debug'] = true;
$app->register(new Silex\Provider\DoctrineServiceProvider(), array(
***