ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Loader

Laravel v5.4 DI dependency injection decode error

Author Message
chihwen



Joined: 27 Jun 2018
Posts: 1

PostPosted: Wed Jun 27, 2018 3:57 am    Post subject: Laravel v5.4 DI dependency injection decode error Reply with quote

Dears:

We got a decoding error. as follows:

## Case-1:
Quote:

production.ERROR: exception 'Illuminate\Contracts\Container\BindingResolutionException' with message 'Unresolvable dependency resolving [Parameter #0 [ <optional> array $attributes ]] in class App\SystemAccount' in /var/www/ws/releases/41/vendor/laravel/framework/src/Illuminate/Container/Container.php:910
Stack trace:


Code:

    /**
     * SystemAccount constructor.
     *
     * @param array $attributes
     */
    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);

        app('app')->instance(self::class, $this);

        $this->lib = app(SystemAccountLibrary::class);
    }


## Case-2:
Quote:

production.ERROR: exception 'Illuminate\Contracts\Container\BindingResolutionException' with message 'Unresolvable dependency resolving [Parameter #1 [ <optional> $url ]] in class DoubleService\View\Template' in /var/www/ws/releases/41/vendor/laravel/framework/src/Illuminate/Container/Container.php:910
Stack trace:


Code:

    /**
     * Template constructor.
     *
     * @param ViewFactory $view
     * @param string      $url
     */
    public function __construct(ViewFactory $view, $url = '')
    {
        $this->view = $view;

        $this->url = $url ?: env('APP_URL');
    }


## Our environment is:
1. ionCube Encoder v9.0.5
2. ionCube Loader (enabled) v10.2.2
3. PHP v5.6.36
4. Laravel 5.4.36

Judging from the error message that the common symptom is
When Laravel automatically performs DI dependency injection, the injected object's constructor __construct() parameter with a default value.

## Tested separately using the following combinations, but all got the same error:
1. Enable Dynamic keys and decoding.
2. Enable Dynamic keys and decoding and with --allow-reflection-all.
3. Disable Dynamic keys and decoding (--disable-dynamic-decoding).

Our current solution is to ignore the php programs that have these symptoms first, and don't encode them.

Thank you for your support in advance.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Loader All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum