added bundle:refresh command to cli.

This commit is contained in:
Taylor Otwell
2012-02-08 08:28:16 -06:00
parent a0379ea48d
commit bf4f464f67
3 changed files with 23 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
use Laravel\IoC;
use Laravel\File;
use Laravel\Cache;
use Laravel\Bundle;
use Laravel\CLI\Tasks\Task;
@@ -55,6 +56,8 @@ class Bundler extends Task {
echo "Bundle [{$bundle['name']}] has been installed!".PHP_EOL;
}
$this->refresh();
}
/**
@@ -102,6 +105,8 @@ class Bundler extends Task {
echo "Bundle [{$name}] has been upgraded!".PHP_EOL;
}
$this->refresh();
}
/**
@@ -125,6 +130,16 @@ class Bundler extends Task {
}
}
/**
* Clear the bundle manifest cache.
*
* @return void
*/
public function refresh()
{
Cache::forget(Bundle::manifest);
}
/**
* Gather all of the bundles from the bundle repository.
*