Skip to content

Instantly share code, notes, and snippets.

View kozog's full-sized avatar

Krzysztof Ożóg kozog

  • Kraków, Poland
View GitHub Profile
if (!$user->getBalancedUri()) {
$this->get('jm_balancedpayment.payment.manager')->createAccount($user); // --> this line caused error,
}
https://github.com/kozog/JmBalancedPaymentBundle/blob/master/Model/PaymentManager.php#L44 (this is my fork of that bundle because of incompatibility in dependencies)
@kozog
kozog / phpci.yml
Last active March 26, 2017 21:51
PHP-CI symfony config
build_settings:
ignore:
- "vendor"
- "tests"
setup:
composer:
action: "install"
shell:
- "%BUILD_PATH%/app/console doctrine:schema:drop --force"
function Geolocator (modernizr, jquery, fallbackApi) {
this.jquery = jquery;
this.modernizr = modernizr;
this.fallbackApi = fallbackApi;
}
Geolocator.prototype.is64BitFirefox = function () {
var pattern = /.+Ubuntu.+Linux x86_64.+Firefox.+$/;
var match = navigator.userAgent.match(pattern);
@kozog
kozog / gist:2717692
Created May 17, 2012 09:23
category entity
namespace kp\BloggerBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Sylius\Bundle\CategorizerBundle\Entity\NestedCategory as BaseCategory;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* Blog category.
@kozog
kozog / gist:2628169
Created May 7, 2012 14:45
My configuration
<?php
class Configuration implements ConfigurationInterface
{
/**
* {@inheritDoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('kp_media');
@kozog
kozog / gist:2628113
Created May 7, 2012 14:35
some config problem
parameters:
kp_media:
linkmap:
"Sylius\\Sandbox\\Bundle\\AssortmentBundle\\Entity\\Product": "kp\\MediaBundle\\Entity\\ProductMedia"
uploader:
media_path: uploads
www_root: public
imager:
options:
lib: gd