provider
This commit is contained in:
+10
-6
@@ -1,11 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "lexx27/lucent",
|
"name": "lexx27/lucent",
|
||||||
"type": "project",
|
"type": "library",
|
||||||
"description": "Lucent cms",
|
"description": "Lucent cms",
|
||||||
"keywords": [
|
|
||||||
"framework",
|
|
||||||
"laravel"
|
|
||||||
],
|
|
||||||
"bin": [
|
"bin": [
|
||||||
"bin/lucent-serve"
|
"bin/lucent-serve"
|
||||||
],
|
],
|
||||||
@@ -24,7 +20,7 @@
|
|||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"src\\": "lucent/"
|
"Lucent\\": "src/"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"src/Response.php",
|
"src/Response.php",
|
||||||
@@ -33,6 +29,14 @@
|
|||||||
"src/File/Uploader.php"
|
"src/File/Uploader.php"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"extra": {
|
||||||
|
"laravel": {
|
||||||
|
"providers": [
|
||||||
|
"Lucent\\LucentServiceProvider"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"prefer-stable": true
|
"prefer-stable": true
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "063b8b4ab20973f5bc2dac2e295effe0",
|
"content-hash": "351290446963296c5fabf750b3077a95",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "brick/math",
|
"name": "brick/math",
|
||||||
|
|||||||
@@ -4,13 +4,13 @@ namespace Lucent;
|
|||||||
|
|
||||||
use Illuminate\Routing\Router;
|
use Illuminate\Routing\Router;
|
||||||
use Illuminate\Support\Facades\View;
|
use Illuminate\Support\Facades\View;
|
||||||
use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use Lucent\Channel\ChannelService;
|
use Lucent\Channel\ChannelService;
|
||||||
use Lucent\Commands\CompileConfig;
|
use Lucent\Commands\CompileConfig;
|
||||||
use Lucent\Commands\RebuildThumbnails;
|
use Lucent\Commands\RebuildThumbnails;
|
||||||
use Lucent\File\ImageService;
|
use Lucent\File\ImageService;
|
||||||
|
|
||||||
class ServiceProvider extends IlluminateServiceProvider
|
class LucentServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Register any application services.
|
* Register any application services.
|
||||||
@@ -23,7 +23,7 @@ class StaticGenerator
|
|||||||
public function recordIterator(callable $query, callable $parser, int $skip = 0): int
|
public function recordIterator(callable $query, callable $parser, int $skip = 0): int
|
||||||
{
|
{
|
||||||
$limit = 100;
|
$limit = 100;
|
||||||
logger("fetching $skip");
|
// logger("fetching $skip");
|
||||||
|
|
||||||
$records = $query($limit, $skip);
|
$records = $query($limit, $skip);
|
||||||
$parser($records);
|
$parser($records);
|
||||||
|
|||||||
Reference in New Issue
Block a user