Commit 893f65fc authored by Taylor Otwell's avatar Taylor Otwell

Fix bundle publishing bug.

If the bundle was not registered, crazy stuff would happen. We just won't publish for non-existent bundles.
Signed-off-by: 's avatarTaylor Otwell <taylorotwell@gmail.com>
parent aeaebead
......@@ -14,6 +14,13 @@ class Publisher {
*/
public function publish($bundle)
{
if ( ! Bundle::exists($bundle))
{
echo "Bundle [$bundle] is not registered.";
return;
}
$path = Bundle::path($bundle);
$this->move($path.'public', path('public').'bundles'.DS.$bundle);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment