Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php declare(strict_types=1); namespace TestApp\ServiceProvider; use Cake\Core\Containe..

Decoded Output download

<?php
declare(strict_types=1);

namespace TestApp\ServiceProvider;

use Cake\Core\ContainerInterface;
use Cake\Core\ServiceProvider;

class PersonServiceProvider extends ServiceProvider
{
    protected array $provides = ['boot', 'sally'];

    public function bootstrap(ContainerInterface $container): void
    {
        $container->add('boot', json_decode('{"name":"boot"}'));
    }

    public function services(ContainerInterface $container): void
    {
        $container->add('sally', json_decode('{"name":"sally"}'));
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
declare(strict_types=1);

namespace TestApp\ServiceProvider;

use Cake\Core\ContainerInterface;
use Cake\Core\ServiceProvider;

class PersonServiceProvider extends ServiceProvider
{
    protected array $provides = ['boot', 'sally'];

    public function bootstrap(ContainerInterface $container): void
    {
        $container->add('boot', json_decode('{"name":"boot"}'));
    }

    public function services(ContainerInterface $container): void
    {
        $container->add('sally', json_decode('{"name":"sally"}'));
    }
}

Function Calls

None

Variables

None

Stats

MD5 5f2c00cb9fb1fa622b947ad9a18764a5
Eval Count 0
Decode Time 101 ms