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
*PPD-Adobe: "4.3" | |
*% Adobe Systems PostScript(R) Printer Description File | |
*% Copyright 2009-2010 Xerox Corporation. | |
*FileVersion: "1.0" | |
*FormatVersion: "4.3" | |
*LanguageEncoding: ISOLatin1 | |
*LanguageVersion: English |
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
function get(path) | |
{ | |
if ('undefined' != typeof cache[path]) { | |
return cache[path] | |
} | |
cache[path] = new Resource(getTarget(path)) | |
return cache[path] | |
} |
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 ACC\MainBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | |
class DefaultController extends Controller | |
{ | |
/** | |
* @Route("/", name="accmain_index") | |
* @Template() |
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 '::base.html.twig' %} | |
{% set active_section = 'goods' %} | |
{% use 'bootstrap_3_layout.html.twig' %} | |
{% block body -%} | |
<div class="page-header"> | |
<h1>Edit Good</h1> | |
</div> |
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
{ | |
'publish': function (gulp) { | |
gulp.src('res/public') | |
.pipe(gulp.dest('web')); | |
gulp.src('vendor/batman/blog/res/public') | |
.pipe(gulp.dest('web/blog')); | |
}, | |
'watch': function (gulp, tasks) { | |
gulp.watch('res/public', tasks); |
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 | |
/* | |
* This file is part of the puli/gulp-plugin package. | |
* | |
* (c) Bernhard Schussek <bschussek@gmail.com> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
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 | |
// Bootstrap loaders | |
$symfonyLoader = new Symfony\DI\YamlLoader(); | |
$zendLoader = new Zend\DI\PhpLoader(); | |
$pimpleLoader = new Pimple\PhpLoader(); | |
// Load configuration of different packages | |
$list = new ServiceDefinitionList(); | |
$list->merge($symfonyLoader->loadDefinitions('packageA/config/services.yml')); |
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
class MoneyType extends AbstractType implements DataMapperInterface | |
{ | |
public function buildForm(FormBuilder $builder, array $options) | |
{ | |
$builder | |
->add('amount', 'integer') | |
->add('currency', 'string') | |
->setDataMapper($this) | |
; | |
} |
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
$form->add('field', 'choice', array( | |
'choices' => array( | |
'Yes' => true, | |
'No' => false, | |
'Maybe' => null, | |
), | |
)); | |
// $list->getValues(): ['0', '1', '2'] | |
// $list->getChoices(): [0 => true, 1 => false 2 => null] |
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
use Puli\PuliFactory; | |
// Can be configured to use an auto-loadable location/class-name | |
// More info will be in the docs | |
require_once __DIR__.'/.puli/PuliFactory.php'; | |
$factory = new PuliFactory(); | |
$repo = $factory->createRepository(); |
NewerOlder