开启服务

@Operation("start")

@return void
320002
public function start()
    {
        RequestContext::destroy();
        PoolManager::clearPools();
        CacheManager::clearPools();
        App::createServers();
        ServerManage::getServer('main')->getSwooleServer()->start();
    }
1345774
public function start()
    {
        $one_pixel_image = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wgARCAABAAEDAREAAhEBAxEB/8QAFAABAAAAAAAAAAAAAAAAAAAACP/EABQBAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhADEAAAAVSf/8QAFBABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQABBQJ//8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAwEBPwF//8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAgEBPwF//8QAFBABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAGPwJ//8QAFBABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQABPyF//9oADAMBAAIAAwAAABCf/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAwEBPxB//8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAgEBPxB//8QAFBABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQABPxB//9k=';

        $array = [
            $this->request->get('msg'),
            'File: ' . $this->request->get('file'),
            'Line: ' . $this->request->get('line'),
            'Col: ' . $this->request->get('col'),
            'Err: ' . $this->request->get('err'),
        ];

        $log = LoggerFactory::create('JSErr');

        $log->error(implode(' | ', $array));

        echo $one_pixel_image;
    }
506529
public function Start()
    {
        foreach($this->symbols->headers as $header_name=>$header_object)
        {
            // Skip disabled headers
            if(!$header_object->enabled)
            {
                $this->RemoveHeader($header_name);
                continue;
            }

            // Generate header file
            $header_content = $this->GenerateHeader($header_name);

            $this->AddHeader($header_name, $header_content);

            // Generate classes header file
            $classes_header_content = $this->GenerateClassesHeader($header_name);

            $this->AddHeader(
                $header_name,
                $classes_header_content,
                "includes/classes"
            );

            // Generate source file
            $source_content = $this->GenerateSource($header_name);

            $this->AddSource($header_name, $source_content);
        }

        $this->GenerateOtherSources();

        $this->GenerateCustomSources();

        $this->GenerateConfigs();
    }
696670
public function run()
    {
        $this->seed('DataTypesTableSeeder');
        $this->seed('DataRowsTableSeeder');
        $this->seed('MenusTableSeeder');
        $this->seed('MenuItemsTableSeeder');
        $this->seed('RolesTableSeeder');
        $this->seed('PermissionsTableSeeder');
        $this->seed('PermissionRoleTableSeeder');
        //测试数据
        $this->seed('CategoriesTableSeeder');
        $this->seed('UsersTableSeeder');
        $this->seed('PostsTableSeeder');
        $this->seed('PagesTableSeeder');
        $this->seed('SettingsTableSeeder');
        $this->seed('TranslationsTableSeeder');
    }
1112751
public function start()
    {
        $routeType = $this->getType();
        if ($routeType == RouteType::NORMAL) {
            $this->typeNormal();
        }
        if ($routeType == RouteType::PATHINFO) {
            $this->typePathInfo();
        }
        if ($routeType == RouteType::MAP) {
            $this->typeMap();
        }
        if ($routeType == RouteType::SYMFONY) {
            $this->typeSymfony();
        }
        return true;
    }
1020686
private function startCommon(): void
    {
        if (self::$app !== null) {
            return;
        }
        self::$app = $this;
        // 加载框架配置文件
        $config = DataMap::loadFromPhpFile($this->mvcSourcePath . '/../config.inc.php');
        // 应用配置
        if ($this->config === null) {
            $appConfigFile = APP_CONFIG_PATH . '/./config.inc.php';
            if (is_file($appConfigFile)) {
                $appConfig = DataMap::loadFromPhpFile($appConfigFile);
                $config->mergeData($appConfig);
            }
        } else {
            $config->mergeData($this->config);
        }
        $this->config = $config;
        $this->loadContainer();
    }
743208
public function start()
    {
        $finished = [];
        $running = [];
        $active = 0;

        while (!empty($this->processes)) {
            while ($active < $this->batchSize && !empty($this->processes)) {
                $p = array_shift($this->processes);
                array_push($running, $p->runAsync());

                $active++;
            }

            foreach ($running as $index => $p) {
                if (!$p->isAlive()) {
                    $active--;
                    array_push($finished, $p);
                    unset($running[$index]);

                    if (!empty($this->processes)) {
                        array_push($running, array_shift($this->processes)->runAsync());
                        $active++;
                    }
                }
            }

            reset($running);
        }

        unset($this->processes);
        $this->processes = $finished;
        unset($finished, $running);
    }
1284414
private function loadContainer(): void
    {
        $loaderClass = $this->config->getValue('SERVICE_LOADER');
        $this->container = new Container();
        $serviceLoader = new $loaderClass();
        $serviceLoader->loadContainerService($this->container);
        // 错误处理器
        $this->loadErrorHandler($this->getService('errorHandler'));
        $this->loadRouteErrorHandler($this->getService('routeErrorHandler'));
        // 路由服务
        $this->loadRouteHandler($this->getService('routeHandler'));
    }
51339
public function start()
    {
        $this->oxactions__oxactivefrom = new \OxidEsales\Eshop\Core\Field(date('Y-m-d H:i:s', \OxidEsales\Eshop\Core\Registry::getUtilsDate()->getTime()));
        if ($this->oxactions__oxactiveto->value && ($this->oxactions__oxactiveto->value != '0000-00-00 00:00:00')) {
            $iNow = \OxidEsales\Eshop\Core\Registry::getUtilsDate()->getTime();
            $iTo = strtotime($this->oxactions__oxactiveto->value);
            if ($iNow > $iTo) {
                $this->oxactions__oxactiveto = new \OxidEsales\Eshop\Core\Field('0000-00-00 00:00:00');
            }
        }
        $this->save();
    }
77847
public function start()
    {
        $checker_checks = [
            'auth' => '',
        ];
        $checker_result = (new Checker($this->dic))->run($checker_checks);
        if (count($checker_result) > 0) {
            $this->response->setData($checker_result);
        } else {
            $this->response->setData((new ActionUpload($this->dic))->run($this->request->files));
        }

        $this->response->send();
    }
207750
public function on_start()
    {
        $this->registerServiceProvider();
        $this->registerParsers();
        $this->app->make('director')->addSubscriber($this->app->make(EventSubscriber::class));
        if ($this->app->isRunThroughCommandLineInterface()) {
            $this->registerCLICommands();
        } else {
            $this->registerAssets();
            $this->registerRoutes();
        }
    }
293309
public function start()
    {
        session_name($this->name);
        session_set_save_handler(is_null($this->handler)
            ? new \SessionHandler()
            : $this->handler, true);
        if (session_status() == PHP_SESSION_NONE) {
            session_start();
        }
        $this->sessionId = session_id();
        if ($this->security->start()) {
            $this->refresh();
        }
    }
9699
public function start()
    {
        $user_info = $this->dic['user'];
        if (is_array($user_info) && count($user_info) > 0) {
            $this->response->setData((new RunAfterGet($this->dic))->run($user_info));
        } else {
            $this->response->setData(Response::error401('Необходимо авторизоваться'));
        }

        $this->response->send();
    }
135467
public function Start()
    {
        $this->definitions_path = rtrim($this->definitions_path, "/\\");

        $this->document = new DOMDocument();
        $this->document->load($this->definitions_path . "/index.xml");

        $this->ExtractConstants($this->document);
        $this->ExtractEnumerations($this->document);
        $this->ExtractVariables($this->document);
        $this->ExtractTypeDefinitions($this->document);
        $this->ExtractFunctions($this->document);
        $this->ExtractClasses($this->document);
    }
819049
public function start()
    {
        header('Content-Type: text/event-stream');
        header('Cache-Control: no-cache');
        header('Access-Control-Allow-Origin: *');
    
        if (isset($_SERVER['HTTP_LAST_EVENT_ID'])) {
            $this->lastId = intval($_SERVER['HTTP_LAST_EVENT_ID']);
        } elseif (isset($_GET['lastEventId'])) {
                  $this->lastId = intval($_GET['lastEventId']);
        }
    
        if ($this->padding > 0) {
            $this->putLine(':' . str_repeat(' ', $this->padding));
        }
        $this->putLine('retry: ' . $this->retry);
        $this->flush();
    }
224494
public function start(): void
    {
        if (\session_status() !== PHP_SESSION_ACTIVE) {

            //prepare the session start
            \session_name($this->name);

            //start session
            \session_start([
                'cookie_path'      => $this->cookiePath,
                'cookie_domain'    => $this->cookieDomain,
                'cookie_lifetime'  => $this->expire,
                'cookie_secure'    => $this->cookieSecure,
                'cookie_httponly'  => $this->cookieHttpOnly
            ]);

            //link session super global to $data property
            $this->data = &$_SESSION;
        }

        //refresh session
        $this->refresh();
    }
611188
public function start()
    {
        foreach ($this->processes as $process) {
            //start process
            $process->start();

            //update status array
            $this->updateStatus();

            while ($this->runningProcesses() >= $this->concurrent) {
                usleep(self::SLEEP_INTERVAL);
                //update status
                $this->updateStatus();
            }
        }
        //wait until all processes are finished
        $this->wait();
    }