diff --git a/app/Utils/TemplateEngine.php b/app/Utils/TemplateEngine.php index 25d6827b3d22..71245bc6b563 100644 --- a/app/Utils/TemplateEngine.php +++ b/app/Utils/TemplateEngine.php @@ -90,6 +90,7 @@ class TemplateEngine if (strlen($this->entity) > 1 && strlen($this->entity_id) > 1) { $class = 'App\Models\\'.ucfirst($this->entity); $this->entity_obj = $class::withTrashed()->where('id', $this->decodePrimaryKey($this->entity_id))->company()->first(); + nlog("the entity id = ".$this->entity_obj->id); } else { $this->mockEntity(); } diff --git a/composer.json b/composer.json index 90cbe1790d12..829298e5f35e 100644 --- a/composer.json +++ b/composer.json @@ -30,6 +30,7 @@ "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", + "afosto/yaac": "^1.4", "asm/php-ansible": "dev-main", "authorizenet/authorizenet": "^2.0", "bacon/bacon-qr-code": "^2.0", diff --git a/composer.lock b/composer.lock index ecfd6023ba9a..360e73ebc64f 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,60 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "ebb191c91f4011a448605a0fd725faff", + "content-hash": "3071902abd0fe82991f6409ab7f5b4c0", "packages": [ + { + "name": "afosto/yaac", + "version": "v1.4.0", + "source": { + "type": "git", + "url": "https://github.com/afosto/yaac.git", + "reference": "ef131cfe9e6dc627968f2847a5a726e961a21cd3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/afosto/yaac/zipball/ef131cfe9e6dc627968f2847a5a726e961a21cd3", + "reference": "ef131cfe9e6dc627968f2847a5a726e961a21cd3", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-openssl": "*", + "guzzlehttp/guzzle": "^6.3|^7.0", + "league/flysystem": "^1.0|^3.0" + }, + "type": "package", + "autoload": { + "psr-4": { + "Afosto\\Acme\\": "./src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Afosto Team", + "homepage": "https://afosto.com" + } + ], + "description": "Yet Another ACME client: a decoupled LetsEncrypt client", + "homepage": "https://afosto.com", + "keywords": [ + "ACME", + "acmev2", + "afosto", + "encrypt", + "lets", + "v2" + ], + "support": { + "issues": "https://github.com/afosto/yaac/issues", + "source": "https://github.com/afosto/yaac/tree/v1.4.0" + }, + "time": "2022-02-18T15:18:06+00:00" + }, { "name": "apimatic/jsonmapper", "version": "v2.0.3", @@ -5120,71 +5172,6 @@ ], "time": "2022-01-21T13:39:10+00:00" }, - { - "name": "maennchen/zipstream-php", - "version": "1.2.0", - "source": { - "type": "git", - "url": "https://github.com/maennchen/ZipStream-PHP.git", - "reference": "6373eefe0b3274d7b702d81f2c99aa977ff97dc2" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/6373eefe0b3274d7b702d81f2c99aa977ff97dc2", - "reference": "6373eefe0b3274d7b702d81f2c99aa977ff97dc2", - "shasum": "" - }, - "require": { - "ext-mbstring": "*", - "myclabs/php-enum": "^1.5", - "php": ">= 7.1", - "psr/http-message": "^1.0" - }, - "require-dev": { - "ext-zip": "*", - "guzzlehttp/guzzle": ">= 6.3", - "mikey179/vfsstream": "^1.6", - "phpunit/phpunit": ">= 7.5" - }, - "type": "library", - "autoload": { - "psr-4": { - "ZipStream\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Paul Duncan", - "email": "pabs@pablotron.org" - }, - { - "name": "Jesse Donat", - "email": "donatj@gmail.com" - }, - { - "name": "Jonatan Männchen", - "email": "jonatan@maennchen.ch" - }, - { - "name": "András Kolesár", - "email": "kolesar@kolesar.hu" - } - ], - "description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.", - "keywords": [ - "stream", - "zip" - ], - "support": { - "issues": "https://github.com/maennchen/ZipStream-PHP/issues", - "source": "https://github.com/maennchen/ZipStream-PHP/tree/master" - }, - "time": "2019-07-17T11:01:58+00:00" - }, { "name": "mollie/mollie-api-php", "version": "v2.40.1", @@ -5522,66 +5509,6 @@ }, "time": "2021-06-14T00:11:39+00:00" }, - { - "name": "myclabs/php-enum", - "version": "1.8.3", - "source": { - "type": "git", - "url": "https://github.com/myclabs/php-enum.git", - "reference": "b942d263c641ddb5190929ff840c68f78713e937" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/myclabs/php-enum/zipball/b942d263c641ddb5190929ff840c68f78713e937", - "reference": "b942d263c641ddb5190929ff840c68f78713e937", - "shasum": "" - }, - "require": { - "ext-json": "*", - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.5", - "squizlabs/php_codesniffer": "1.*", - "vimeo/psalm": "^4.6.2" - }, - "type": "library", - "autoload": { - "psr-4": { - "MyCLabs\\Enum\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP Enum contributors", - "homepage": "https://github.com/myclabs/php-enum/graphs/contributors" - } - ], - "description": "PHP Enum implementation", - "homepage": "http://github.com/myclabs/php-enum", - "keywords": [ - "enum" - ], - "support": { - "issues": "https://github.com/myclabs/php-enum/issues", - "source": "https://github.com/myclabs/php-enum/tree/1.8.3" - }, - "funding": [ - { - "url": "https://github.com/mnapoli", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/myclabs/php-enum", - "type": "tidelift" - } - ], - "time": "2021-07-05T08:18:36+00:00" - }, { "name": "nelexa/zip", "version": "4.0.1", @@ -15724,5 +15651,5 @@ "platform-dev": { "php": "^7.3|^7.4|^8.0" }, - "plugin-api-version": "2.0.0" + "plugin-api-version": "2.1.0" }