Skip to content
This repository was archived by the owner on Sep 14, 2018. It is now read-only.

Add cache/logs command to console#74

Open
jnadaud wants to merge 1 commit intosilexphp:masterfrom
jnadaud:feat-console
Open

Add cache/logs command to console#74
jnadaud wants to merge 1 commit intosilexphp:masterfrom
jnadaud:feat-console

Conversation

@jnadaud
Copy link
Copy Markdown

@jnadaud jnadaud commented Nov 25, 2016

Add cache:clear and logs:clear commands in console

Comment thread src/console.php
->setDescription('Clears the cache')
->setCode(function (InputInterface $input, OutputInterface $output) use ($app) {
$cacheDir = $app['cache.path'];
$finder = Finder::create()->in($cacheDir)->notName('.gitkeep');
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Silex-Skeleton uses .gitignore in both cache and logs directories.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants