src/App.php
public function add($seed, $region = null)
    {
        if (!$this->layout) {
            throw new Exception(['If you use $app->add() you should first call $app->setLayout()']);
        }

        return $this->layout->add($seed, $region);
    }
public function add($seed, $region = null)
    {
        if (!$this->layout) {
            throw new Exception(['If you use $app->add() you should first call $app->setLayout()']);
        }

        return $this->layout->add($seed, $region);
    }
public function add ( $ seed , $ region = null ) { if ( ! $ this -> layout ) { throw new Exception ( [ 'If you use $app->add() you should first call $app->setLayout()' ] ) ; } return $ this -> layout -> add ( $ seed , $ region ) ; }
Add a new object into the app. You will need to have Layout first.

@param mixed  $seed   New object to add
@param string $region

@return object
Add a new object into the app . You will need to have Layout first .