Ferreteria/v0.6/clade/IO/Aspect/Connx/run/Session/@code/rmv/2026/09/01

From WoozleCodes
Jump to navigation Jump to search
2026/08/31 2026/09/01 2026/09/02

replacing with FromStarter():

#
    // ++ SETUP ++ //

    public static function FromStartCmd(StartIface $oStart, CommandIface $oCmd) : SelfIface {
        $oThis = new static;
        $oThis->WithStartCmd($oStart,$oCmd);
        return $oThis;
    }

Just use $OStart instead of this:

#
    // ++ SETUP: dynamic ++ //

    protected function WithStartCmd(StartIface $oStart, CommandIface $oCmd) {
        $oUpd = $oCmd->OUpdate;
        #$this->AmHere('UPDATER: '.(is_object($oUpd) ? get_class($oUpd) : 'NULL'));
        self::QOUpdater()->SetObjNz($oUpd);
        $this->OStart = $oStart;
        $this->OCommand = $oCmd;
        #$this->Open();  // TODO 2026-08-31 This should probably be elsewhere, and also Shut() needs to be called.
        #$this->StartProcess();
    }

    // -- SETUP -- //