private function init(InputInterface $input, OutputInterface $output)
    {
        $this->helper = $this->getHelper('question');
        $this->input = $input;
        $this->output = $output;

        // Set whether target files should be overwritten or not.
        $this->force = $input->getOption('force');
        $this->root = $input->getOption('root');

        $this->init_wordpress();

        // Setup Snap.
        Snap::create_container();
        Snap::init_config($this->root);

        // Setup WP filesystem helper.
        $this->setup_filesystem();
    }
private function init(InputInterface $input, OutputInterface $output)
    {
        $this->helper = $this->getHelper('question');
        $this->input = $input;
        $this->output = $output;

        // Set whether target files should be overwritten or not.
        $this->force = $input->getOption('force');
        $this->root = $input->getOption('root');

        $this->init_wordpress();

        // Setup Snap.
        Snap::create_container();
        Snap::init_config($this->root);

        // Setup WP filesystem helper.
        $this->setup_filesystem();
    }
private function init ( InputInterface $ input , OutputInterface $ output ) { $ this -> helper = $ this -> getHelper ( 'question' ) ; $ this -> input = $ input ; $ this -> output = $ output ; // Set whether target files should be overwritten or not. $ this -> force = $ input -> getOption ( 'force' ) ; $ this -> root = $ input -> getOption ( 'root' ) ; $ this -> init_wordpress ( ) ; // Setup Snap. Snap :: create_container ( ) ; Snap :: init_config ( $ this -> root ) ; // Setup WP filesystem helper. $ this -> setup_filesystem ( ) ; }
Set up class properties and initialise Snap.

@param  InputInterface  $input  Command input.
@param  OutputInterface $output Command output.

@throws \Hodl\Exceptions\ContainerException
Set up class properties and initialise Snap .