Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
liverbool committed Jun 17, 2018
1 parent b7fef23 commit e5c497d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 72 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"doctrine/doctrine-cache-bundle": "^1.3",
"doctrine/phpcr-bundle": "^2.0",
"doctrine/phpcr-odm": "^1.4",
"helios-ag/fm-elfinder-bundle": "^8",
"jackalope/jackalope-doctrine-dbal": "^1.3",
"league/flysystem-cached-adapter": "^1.0",
"league/flysystem-phpcr": "^1.1",
Expand Down
3 changes: 1 addition & 2 deletions src/EventListener/UploadFileListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

use Doctrine\Common\EventSubscriber;
use Doctrine\Common\Persistence\Event\LifecycleEventArgs;
use Doctrine\Common\Persistence\Event\PreUpdateEventArgs;
use Liip\ImagineBundle\Imagine\Cache\CacheManager;
use Liip\ImagineBundle\Imagine\Filter\FilterManager;
use PhpMob\MediaBundle\Model\FileInterface;
Expand Down Expand Up @@ -61,7 +60,7 @@ public function prePersist(LifecycleEventArgs $args)
/**
* {@inheritdoc}
*/
public function preUpdate(PreUpdateEventArgs $args)
public function preUpdate(LifecycleEventArgs $args)
{
$this->uploadFile($args->getObject());
}
Expand Down
9 changes: 0 additions & 9 deletions src/Resources/config/app/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,11 @@

parameters:
phpmob.imagine.loader: default
phpmob.fm_elfinder.lang: "en"
phpmob.fm_elfinder.tmp_path_private: "%kernel.root_dir%/../web/thumbnail"
phpmob.fm_elfinder.tmp_path_public: "%kernel.root_dir%/../web/thumbnail"
phpmob.fm_elfinder.url_private: "media/cache/resolve/strip/private"
phpmob.fm_elfinder.url_public: "media/cache/resolve/strip/public"
phpmob.fm_elfinder.asset_path: "/assets"
phpmob.uploader.local_directory: "%kernel.root_dir%/../var/media"
phpmob.flysystem.cache_adapter: "cache.app"
# liip_imagine.pngquant.binary: /usr/local/bin/pngquant
# liip_imagine.mozjpeg.binary: /usr/local/bin/cjpeg

imports:
- { resource: "@PhpMobMediaBundle/Resources/config/app/fm_elfinder.yml" }

doctrine:
dbal:
types:
Expand Down
60 changes: 0 additions & 60 deletions src/Resources/config/app/fm_elfinder.yml

This file was deleted.

0 comments on commit e5c497d

Please sign in to comment.