Skip to content

Instantly share code, notes, and snippets.

View aderuwe's full-sized avatar

Alexander Deruwe aderuwe

  • Belgium, Antwerp
View GitHub Profile
<?php
public function someAction()
{
$filename = 'some-file';
$file = new File($filename);
$customer->setLogo($file);
$storage = $this->container->get('vich_uploader.storage');
$storage->upload($customer);
@aderuwe
aderuwe / ProvinceSelector.php
Created December 31, 2012 13:30
Using a data_class for the heck of it?
<?php
namespace Comforce\Bundle\ImmoforceBundle\Model;
use Comforce\Bundle\GeoPostcodeBundle\Entity\Province;
class ProvinceSelector
{
private $province;
@aderuwe
aderuwe / FeatureContext.php
Created February 13, 2013 08:08
Behat metastep for logging in a user
<?php
// ... code snipped
class FeatureContext extends MinkContext implements KernelAwareInterface
{
// ... code snipped
/**
* @Given /^I am logged in as user "([^"]*)" with password "([^"]*)"$/

Keybase proof

I hereby claim:

  • I am aderuwe on github.
  • I am aderuwe (https://keybase.io/aderuwe) on keybase.
  • I have a public key whose fingerprint is 1C83 C12F 2262 BBBF 3E38 0FFA B65C CDC7 B8B3 6E14

To claim this, I am signing this object: