Skip to content

Commit

Permalink
docs: header comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed Dec 8, 2022
1 parent cbe46f8 commit a646c79
Show file tree
Hide file tree
Showing 10 changed files with 65 additions and 5 deletions.
6 changes: 6 additions & 0 deletions src/Commands/stubs/command-provider.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/*
* Fresns (https://fresns.org)
* Copyright (C) 2021-Present Jarvis Tang
* Released under the Apache-2.0 License.
*/

namespace $NAMESPACE$\Providers;

use Illuminate\Support\Arr;
Expand Down
12 changes: 9 additions & 3 deletions src/Commands/stubs/event-provider.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/*
* Fresns (https://fresns.org)
* Copyright (C) 2021-Present Jarvis Tang
* Released under the Apache-2.0 License.
*/

namespace $NAMESPACE$;

use Illuminate\Auth\Events\Registered;
Expand All @@ -19,10 +25,10 @@ class $CLASS$ extends ServiceProvider
// SendEmailVerificationNotification::class,
// ],
"plugins.clean_data" => [
// When the user uninstalls, if the data needs to be deleted, the listener is configured here.
// When the user uninstalls, if the data needs to be deleted, the listener is configured here.
],
];

/**
* The subscribers to register.
*
Expand Down Expand Up @@ -51,4 +57,4 @@ class $CLASS$ extends ServiceProvider
{
return false;
}
}
}
8 changes: 7 additions & 1 deletion src/Commands/stubs/exception-provider.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/*
* Fresns (https://fresns.org)
* Copyright (C) 2021-Present Jarvis Tang
* Released under the Apache-2.0 License.
*/

namespace $NAMESPACE$;

use App\Exceptions\Handler;
Expand Down Expand Up @@ -47,4 +53,4 @@ class ExceptionServiceProvider extends ServiceProvider
//
};
}
}
}
6 changes: 6 additions & 0 deletions src/Commands/stubs/route-provider.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/*
* Fresns (https://fresns.org)
* Copyright (C) 2021-Present Jarvis Tang
* Released under the Apache-2.0 License.
*/

namespace $NAMESPACE$\Providers;

use Fresns\MarketManager\Models\Plugin;
Expand Down
6 changes: 6 additions & 0 deletions src/Commands/stubs/routes/api.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/*
* Fresns (https://fresns.org)
* Copyright (C) 2021-Present Jarvis Tang
* Released under the Apache-2.0 License.
*/

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use $PLUGIN_NAMESPACE$\$STUDLY_NAME$\Http\Controllers as ApiController;
Expand Down
6 changes: 6 additions & 0 deletions src/Commands/stubs/routes/web.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/*
* Fresns (https://fresns.org)
* Copyright (C) 2021-Present Jarvis Tang
* Released under the Apache-2.0 License.
*/

use Illuminate\Support\Facades\Route;
use $PLUGIN_NAMESPACE$\$STUDLY_NAME$\Http\Controllers as WebController;

Expand Down
6 changes: 6 additions & 0 deletions src/Commands/stubs/scaffold/config.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/*
* Fresns (https://fresns.org)
* Copyright (C) 2021-Present Jarvis Tang
* Released under the Apache-2.0 License.
*/

return [
'name' => '$STUDLY_NAME$',
];
6 changes: 6 additions & 0 deletions src/Commands/stubs/scaffold/provider.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/*
* Fresns (https://fresns.org)
* Copyright (C) 2021-Present Jarvis Tang
* Released under the Apache-2.0 License.
*/

namespace $NAMESPACE$\Providers;

use Illuminate\Support\ServiceProvider as BaseServiceProvider;
Expand Down
8 changes: 7 additions & 1 deletion src/Commands/stubs/schedule-provider.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/*
* Fresns (https://fresns.org)
* Copyright (C) 2021-Present Jarvis Tang
* Released under the Apache-2.0 License.
*/

namespace $NAMESPACE$;

use Illuminate\Support\Str;
Expand Down Expand Up @@ -29,4 +35,4 @@ class ScheduleServiceProvider extends ServiceProvider
{
// $schedule->command('inspire')->hourly();
}
}
}
6 changes: 6 additions & 0 deletions src/Commands/stubs/seeder.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/*
* Fresns (https://fresns.org)
* Copyright (C) 2021-Present Jarvis Tang
* Released under the Apache-2.0 License.
*/

namespace $NAMESPACE$\Database\Seeders;

use Illuminate\Database\Seeder;
Expand Down

0 comments on commit a646c79

Please sign in to comment.