From 3b0726d70bcd31fa801e38face9033705aa05f9c Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 7 Aug 2025 18:08:10 +0200 Subject: [PATCH] wip #7684 --- app/composer.json | 3 +-- app/process.php | 27 --------------------------- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/app/composer.json b/app/composer.json index 03362c7..bd8bd3a 100644 --- a/app/composer.json +++ b/app/composer.json @@ -24,7 +24,6 @@ "prefer-stable": true, "require": { "php": ">=8.4", - "fluidbook/tools": "dev-master", - "slim/slim": "^4.14" + "fluidbook/tools": "dev-master" } } diff --git a/app/process.php b/app/process.php index 0d8a692..083bf86 100644 --- a/app/process.php +++ b/app/process.php @@ -4,36 +4,9 @@ use Fluidbook\Farmer\PDFOperations; use Fluidbook\Farmer\ProcessFile; use Fluidbook\Farmer\ProcessToolboxDocumentFile; use Fluidbook\Farmer\ProcessToolboxPDFFile; -use Illuminate\Cache\CacheManager; -use Illuminate\Container\Container; -use Illuminate\Filesystem\Filesystem; -use Slim\Factory\AppFactory; require_once __DIR__ . "/vendor/autoload.php"; -$app = AppFactory::create(); - -$container = new Container; - -// The CacheManager creates the cache "repository" based on config values -// which are loaded from the config class in the container. -// More about the config class can be found in the config component; for now we will use an array -$container['config'] = [ - 'cache.default' => 'file', - 'cache.stores.file' => [ - 'driver' => 'file', - 'path' => '/tmp/cache', - ] -]; - -$container['files'] = new Filesystem; - -// Create the CacheManager -$cacheManager = new CacheManager($container); - -// Get the default cache driver (file in this case) -$cache = $cacheManager->store(); - if (isset($argv)) { parse_str(implode('&', array_slice($argv, 1)), $_POST); } -- 2.39.5