Comments (11)
Hi @ACvijic, glad that you have it working now 😃 .
With regards:
Maybe there is a problem w/ the version of facade/ignition... but when I look back on the stack trace that I sent above I see that it installed facade/ignition-contracts at version 1.0.0, and not facade/ignition. I think it should be installing facade/ignition as it was added in this commit from #144 , but I don't know why it's not 😕 .
I had my local copy of laravel-acl
installing facade/ignition
when I required it into a local app, but this was using a local repository reference in the app's composer.json
file, but I think that worked only 'cause it pulled in the facade/ignition
package even thought it's in require-dev
of laravel-acl.
But when it pulls from the actual packagist site, composer doesn't pull the dev requirements of a package with it as well, or we would see a lot more of orchestra/testbench
in everyones vendor file, as that is under require-dev
in most packages.
I think then composer didn't pull in the full ignition package as I mistakenly put it under require-dev
in Mateus' package.
This may need to be changed in case of this package being required into Laravel instances which haven't got the facade/ignition package
yet.
Glad you got it running though and thank you for the feedback, even if it took a while, we are all busy 👍.
from laravel-acl.
@ACvijic I'll take a look at this as soon as possible. If it is not a problem for you, use v2.1.1 for now. Thanks for your report.
(Introduced with #141)
from laravel-acl.
@mateusjunges no problem!
Thanks for the quick reply! 🙂
from laravel-acl.
@ACvijic which laravel and php version are you using? I can't reproduce this error.
from laravel-acl.
Laravel 6.3.0
PHP 7.2.1
from laravel-acl.
This is my environment config, and i still not able to reproduce this error.
Environment information
Laravel version: 6.3.0
Laravel locale: en
PHP version: 7.2.19-0ubuntu0.18.04.2
Package installation
composer require mateusjunges/laravel-acl
php artisan acl:install
Are you doing something different?
from laravel-acl.
I just added it to my composer.json
, then ran composer install
- this is the only difference.
I am running my Laravel app in a Docker container, maybe it's something on my end... I'll try to get to the bottom of it next week and I'll keep you posted if I find anything.
from laravel-acl.
I'll make tests with Docker
tonight. Let me know if you figure out anything new.
from laravel-acl.
Hi @ACvijic, quick question, in your composer file, have you got "facade/ignition": "^1.4"
as a composer dev dependency?
from laravel-acl.
@ACvijic i will release 2.2.1 to fix this issue in ~10 minutes. Let me know if it solve your problem.
from laravel-acl.
Sorry to report, #144 didn't fix it for me.
I previously had mateusjunges/laravel-acl
at 2.1.1
to avoid the bug at version 2.2.0
; To test out @ReeceM 's fix I set mateusjunges/laravel-acl
to ^2.1
, which brought it to version 2.2.1
, and I didn't change anything else about my composer.json
. Still the error persisted. Here's the stack trace:
localuser@07a60472bf5b:/opt$ composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
^[[APackage operations: 1 install, 3 updates, 0 removals
- Installing facade/ignition-contracts (1.0.0): Downloading (100%)
- Updating opis/closure (3.4.0 => 3.4.1): Downloading (100%)
- Updating nesbot/carbon (2.25.2 => 2.25.3): Downloading (100%)
- Updating mateusjunges/laravel-acl (2.1.1 => 2.2.1): Downloading (100%)
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Illuminate\Contracts\Container\BindingResolutionException : Target [Facade\IgnitionContracts\SolutionProviderRepository] is not instantiable.
at /opt/vendor/laravel/framework/src/Illuminate/Container/Container.php:979
975| } else {
976| $message = "Target [$concrete] is not instantiable.";
977| }
978|
> 979| throw new BindingResolutionException($message);
980| }
981|
982| /**
983| * Throw an exception for an unresolvable primitive.
Exception trace:
1 Illuminate\Container\Container::notInstantiable("Facade\IgnitionContracts\SolutionProviderRepository")
/opt/vendor/laravel/framework/src/Illuminate/Container/Container.php:813
2 Illuminate\Container\Container::build("Facade\IgnitionContracts\SolutionProviderRepository")
/opt/vendor/laravel/framework/src/Illuminate/Container/Container.php:682
Please use the argument -v to see more details.
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Then I followed @ReeceM 's previous advice:
Hi @ACvijic, quick question, in your composer file, have you got
"facade/ignition": "^1.4"
as a composer dev dependency?
and added "facade/ignition": "^1.4"
to the require-dev
section of my composer.json
. This thankfully fixed the issue! 🎉
My guess:
Maybe there is a problem w/ the version of facade/ignition
... but when I look back on the stack trace that I sent above I see that it installed facade/ignition-contracts
at version 1.0.0
, and not facade/ignition
. I think it should be installing facade/ignition
as it was added in this commit from #144 , but I don't know why it's not 😕 .
And, just to recap, for me the fix was adding "facade/ignition": "^1.4"
to require-dev
.
Sorry for the long comment. Maybe this is just a bug specific to my configuration. I'm content w/ the fix, and glad that I can use @mateusjunges 's great plugin at its latest & greatest version! 😃
Thanks for looking into this, @ReeceM ! 🙂 I do think that facade/ignition
is a great addition!
from laravel-acl.
Related Issues (20)
- Move facade/ignition to composer require HOT 3
- Is this compatible with mongodb? HOT 3
- Exception at UsersTrait:200 when revokingGroup from User HOT 5
- can't sync group from user HOT 3
- Documents lacks some important functions HOT 1
- How to customize Models to Admin HOT 3
- Add support for route model binding
- Make the admin configurable.
- Catching the denied permissions/groups list in the custom handler's exception HOT 5
- Uma tabela a mais para atribuir setores HOT 2
- Wrong User class used by artisan command HOT 3
- There is no permission with this slug HOT 6
- The `can` directive does not work HOT 6
- Error when checking permission for user without direct permission but has group permissions. HOT 3
- Documetation Link broken with 404 Error HOT 1
- support laravel 9 with php8.1 HOT 3
- UsersTrait not exist HOT 3
- Fresh install error message: Cannot assign null to property Junges\ACL\AclRegistrar::$permissionClass of type string HOT 2
- Cannot assign null to property Junges\ACL\AclRegistrar::$cacheKey of type string HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-acl.