Skip to content

Commit

Permalink
remove class alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Recca Tsai committed Nov 25, 2016
1 parent 46b7503 commit da9f1b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 7 additions & 0 deletions src/Manager.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace Recca0120\Upload;

class Manager extends UploadManager
{
}
5 changes: 1 addition & 4 deletions src/UploadServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ public function register()
{
$this->mergeConfigFrom(__DIR__.'/../config/upload.php', 'upload');

$aliasName = 'Recca0120\Upload\Manager';
class_alias(UploadManager::class, $aliasName);

$this->app->singleton(UploadManager::class, function ($app) {
return new UploadManager($app);
});
$this->app->singleton($aliasName, UploadManager::class);
$this->app->singleton(Manager::class, UploadManager::class);
}
}

0 comments on commit da9f1b2

Please sign in to comment.