nks/file-manage-bundle

Symfony file manager bundle

0.9.4 2017-03-17 09:49 UTC

This package is not auto-updated.

Last update: 2024-12-16 16:56:30 UTC


README

File manager symfony bundle

Setup

composer

    $ composer require nks/file-manage-bundle

app/AppKernel.php

    <?php
    // app/AppKernel.php
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new FileManagerBundle\FileManagerBundle(),
            // ...
        );
    }

app/config/routing.yml

FileManagerBundle:
    resource: "@FileManagerBundle/Resources/config/routing.yml"
    prefix:   /fm

Config bundle

file_manager:
  web_dir: "%kernel.root_dir%/../web/" // web directory
  file_manager_dir: "fileManager/" // file manager directory in web
  type_file: // type file load
    - 'jpg'
    - 'png'

@todo

  • fix bug delete folder not clear yml file chain