2017 © Pedro Peláez
 

symfony-bundle auto-delete-bundle

Symfony NTIAutoDeleteBundle

image

nti/auto-delete-bundle

Symfony NTIAutoDeleteBundle

  • Thursday, January 11, 2018
  • by ntidev
  • Repository
  • 1 Watchers
  • 0 Stars
  • 59 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

NTIAutoDeleteBundle

Installation

  1. Install the bundle using composer:, (*1)

    $ composer require ntidev/auto-delete-bundle "dev-master"
    
  2. Add the bundle configuration to the AppKernel, (*2)

    public function registerBundles()
    {
        $bundles = array(
            ...
            new NTI\AutoDeleteBundle\NTIAutoDeleteBundle(),
            ...
        );
    }
    
  3. Update the database schema, (*3)

    $ php app/console doctrine:schema:update
    

Usage

  1. Schedule a cronjob to execute the following commnad:, (*4)

    $ php app/console nti:auto-delete:run   
    
  2. Register paths to be auto deleted using the following generator:, (*5)

    $ php app/console nti:auto-delete:new-entry
    
    

    Help Information:, (*6)


    Usage: nti:auto-delete:new-entry [options] [--] <path> <seconds> Arguments: path The path to be deleted seconds The amount of seconds until the path is deleted. Options: --disabled[=DISABLED] If the entry should be disabled when created. [default: false] --no-recursive[=NO-RECURSIVE] If set and the path is a directory the process won't proceed recursively through subdirectories. [default: false] --keep-empty-dir[=KEEP-EMPTY-DIR] If set, empty directories won't be removed. [default: false] -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question -s, --shell Launch the shell. --process-isolation Launch commands from shell as a separate process. -e, --env=ENV The Environment name. [default: "dev"] --no-debug Switches off debug mode. -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug Help: This command will create a new AutoDeleteEntry.

The Versions

11/01 2018

dev-master

9999999-dev

Symfony NTIAutoDeleteBundle

  Sources   Download

MIT

The Requires

 

by Benjamin Vison

autodeletebundle

15/11 2017

v1.0.0

1.0.0.0

Symfony NTIAutoDeleteBundle

  Sources   Download

MIT

The Requires

 

by Benjamin Vison

autodeletebundle