Реализация VoterInterface:
class AccessVoter implements VoterInterface
{
| {% extends "form_div_layout.html.twig" %} | |
| {# Widgets #} | |
| {% block form_widget_simple %} | |
| {% spaceless %} | |
| {% set type = type|default('text') %} | |
| {% if attr.class is defined and not "form-control" in attr.class %} | |
| {% set attr = attr|merge({class: attr.class ~ ' form-control'}) %} | |
| {% elseif attr.class is not defined %} |
| // Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
| // use this file except in compliance with the License. You may obtain a copy of | |
| // the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | |
| // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | |
| // License for the specific language governing permissions and limitations under |
| configure: WARNING: unrecognized options: --enable-fastcgi | |
| checking for grep that handles long lines and -e... /usr/bin/grep | |
| checking for egrep... /usr/bin/grep -E | |
| checking for a sed that does not truncate output... /usr/local/Library/ENV/4.3/sed | |
| checking build system type... x86_64-apple-darwin13.1.0 | |
| checking host system type... x86_64-apple-darwin13.1.0 | |
| checking target system type... x86_64-apple-darwin13.1.0 | |
| checking whether the C compiler works... yes | |
| checking for C compiler default output file name... a.out | |
| checking for suffix of executables... |
| brew install hhvm --HEAD 2014-04-01 11:27:38 | |
| ==> Installing dependencies for hhvm: cmake, mcrypt, gflags, glog, oniguruma, libelf, gd, imagemagick, memcached, libmemcached, tbb, boostfb, binutilsfb, ncurses, curl, imap-uw, gmp4, mpfr2, libmpc08, isl011, cloog018, gcc48, jemal | |
| ==> Installing hhvm dependency: cmake | |
| ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/cmake-2.8.12.2.mavericks.bottle.2.tar.gz | |
| ######################################################################## 100.0% | |
| ==> Pouring cmake-2.8.12.2.mavericks.bottle.2.tar.gz | |
| 🍺 /usr/local/Cellar/cmake/2.8.12.2: 701 files, 36M | |
| ==> Installing hhvm dependency: mcrypt | |
| ==> Downloading https://downloads.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz | |
| ######################################################################## 100.0% |
| <?php | |
| abstract class AbstractRestController | |
| { | |
| /** | |
| * @var \Symfony\Component\Form\FormFactoryInterface | |
| */ | |
| protected $formFactory; |
signed up on a bad client, don't use: 4B35837458E0FDE5B6DAE9CB39D852C0D3E56762469763070A94F54D996D146C15FE7480DBFC
new: (on Mac use Poison, it doesn't suck) 3453496CBF60CBB9A64D5DCB1AF49DBD160BFD691B3DA5C2389D8B81CB7DC3441A838A3D0B2F
| alias server='open http://quickserve.local:8000 && sleep 1 && php -S quickserve.local:8000 -t ./' |
| define ['app', 'backbone', 'marionette'], (Backbone) -> | |
| App.module "Regions", (Regions, App, Backbone, Marionette, $, _) -> | |
| class Regions.PopoverRegion extends Backbone.Marionette.Region | |
| # options are: | |
| # - target: element to bind popover display to | |
| # - params: parameters passed to Bootstrap's $(el).popover() method | |
| constructor: (options = {}) -> | |
| unless options.target? | |
| throw new Error('You need to specify a target for the popover region') |