mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-26 02:20:39 +00:00
controller refactoring part 22
This commit is contained in:
@@ -17,8 +17,7 @@ class CreateFolderController extends Controller
|
||||
CreateFolderRequest $request,
|
||||
CreateFolderAction $createFolder,
|
||||
FakeCreateFolderAction $fakeCreateFolder,
|
||||
): Response|array {
|
||||
|
||||
): Response | array {
|
||||
// If is demo, return fake folder
|
||||
if (is_demo_account(Auth::user()->email)) {
|
||||
return ($fakeCreateFolder)($request);
|
||||
|
||||
@@ -8,7 +8,6 @@ use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class FavouriteController extends Controller
|
||||
{
|
||||
|
||||
/**
|
||||
* Add folder to user favourites
|
||||
* todo: pridat validator ako AddToFavouritesRequest
|
||||
|
||||
@@ -3,11 +3,11 @@ namespace Domain\Folders\Controllers;
|
||||
|
||||
use Illuminate\Http\Response;
|
||||
use Domain\Sharing\Models\Share;
|
||||
use Support\Demo\Actions\FakeCreateFolderAction;
|
||||
use Support\Services\HelperService;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Domain\Folders\Actions\CreateFolderAction;
|
||||
use Domain\Folders\Requests\CreateFolderRequest;
|
||||
use Support\Demo\Actions\FakeCreateFolderAction;
|
||||
|
||||
/**
|
||||
* Create new folder for guest user with edit permission
|
||||
@@ -16,7 +16,8 @@ class VisitorCreateFolderController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
public HelperService $helper,
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function __invoke(
|
||||
FakeCreateFolderAction $fakeCreateFolderAction,
|
||||
|
||||
Reference in New Issue
Block a user