public function __construct(array $attributes = array())
 {
     $this->hasAttachedFile('image', ['styles' => ['original' => function ($file, $imagine) {
         return $imagine->open($file->getRealPath());
     }, 'medium' => '1000x1000', 'thumb' => '200x200']]);
     parent::__construct($attributes);
 }
Exemple #2
0
 function __construct($location = null)
 {
     parent::__construct();
     //        $this->set(self::ID, self::$firstFreeID++);
     if ($location === null) {
         $this->assignRandomLocation();
     }
 }