Run method

@return void
761398
public function run()
    {

        // register a shutdown function
        register_shutdown_function(array($this, 'shutdown'));

        // register the default autoloader
        require SERVER_AUTOLOADER;

        try {
            // iterate over all structures and generate them
            foreach ($this->structures as $structure) {
                $this->generator->create($structure);
            }

        } catch (\Exception $e) {
            $this->log(LogLevel::ERROR, $e->__toString());
        }
    }
1074849
public function run() : void
    {
        $request = Request::getCurrent();
        $response = $this->handle($request);
        $response->send();
    }
1253428
public function run()
    {
        $userRole = config('roles.models.role')::where('name', '=', 'User')->first();
        $adminRole = config('roles.models.role')::where('name', '=', 'Admin')->first();
        $permissions = config('roles.models.permission')::all();

        /*
         * Add Users
         *
         */
        if (config('roles.defaultUserModel')::where('email', '=', 'admin@admin.com')->first() === null) {
            $newUser = config('roles.defaultUserModel')::create([
                'name'     => 'Admin',
                'email'    => 'admin@admin.com',
                'password' => bcrypt('password'),
            ]);

            $newUser->attachRole($adminRole);
            foreach ($permissions as $permission) {
                $newUser->attachPermission($permission);
            }
        }

        if (config('roles.defaultUserModel')::where('email', '=', 'user@user.com')->first() === null) {
            $newUser = config('roles.defaultUserModel')::create([
                'name'     => 'User',
                'email'    => 'user@user.com',
                'password' => bcrypt('password'),
            ]);

            $newUser;
            $newUser->attachRole($userRole);
        }
    }
511147
public function run() {
        try {
            $this
                ->loadComposerFile()
                ->loadArgs()
                ->parseOptions()
                ->parseArguments()
                ->loadOptionalConfigFiles()
                ->loadAdditionalConfigFiles()
                ->addRuntimeSettings()
                ->configureLogger()
                ->satisfyUserChoice();
        } catch (Exception $exception) {
            $this->abort($exception);
        }
    }
649417
public function run()
    {
        Model::unguard();

        $this->call(RolesTableSeeder::class);
        $this->call(UserTableSeeder::class);

        Model::reguard();
    }
968279
public function run()
    {
        factory(\App\Entities\Admin\Categoria::class, 6)->create();

        factory(\App\Entities\Admin\Tag::class, 10)->create();

        factory(\App\Entities\Admin\Noticia::class, 20)->create()->each(function ($n){{
            $tags = \App\Entities\Admin\Tag::all()->random()->id;
            $n->tags()->sync($tags);
        }});
    }
1335788
public function run() {
        // Start session
        $session = $this->get('session');
        $session->start();

        // Route the request
        $uri = '';
        if (strcmp($this->mode, self::APP_MODE_DEV) == 0) {
            $uri = $_SERVER['REQUEST_URI'];
        } else {
            $uri = $_GET['url'];
        }

        // $baseUri not empty and $uri starts with $baseUri
        if (!empty($this->baseUri) && substr($uri, 0, strlen($this->baseUri)) === $this->baseUri) {
            // Extract $uri without $baseUri
            $uri = substr($uri, strlen($this->baseUri));
        }

        $this->get('router')->route($uri);
    }
263219
public function run()
    {
        $this->convertTo->setData($this->convertFrom->getData());
        $this->convertTo->write();
    }
451321
public function run()
    {
        $groups = $this->groups ?: $this->groups();
        DB::table('group_permissions')->truncate();

        foreach ($groups as $group) {
            $permissions = $group['permissions'] ?? [];
            unset($group['permissions']);

            /** @var Group $groupModel */
            $groupModel = Group::firstOrCreate($group);

            foreach ($permissions as $permission) {
                $groupModel->grantPermissions(Permission::firstOrCreate($permission));
            }
        }
    }
236039
public function run()
    {
        $links = $this->createPageLinks();
        if (!empty($links)) {
            echo TbHtml::pagination($links, $this->htmlOptions);
        }
    }
636780
public static function run()
    {
        if ($_SERVER['argc'] < 2) {
            self::helpAction();
            exit();
        }
        $method = $_SERVER['argv'][1] . 'Action';
        if (method_exists(static::getCurrentClass(), $method)) {
            $params = $_SERVER['argv'];
            array_shift($params);
            array_shift($params);
            call_user_func_array(array(static::getCurrentClass(), $method), $params);
        } else {
            self::displayError("command unknown", true);
        }
    }
1223942
public function run()
    {
        $isPost = $_SERVER["REQUEST_METHOD"] == 'POST';
        $src    = $_SERVER["REQUEST_METHOD"] == 'POST' ? $_POST : $_GET;
        $cmd    = isset($src['cmd']) ? $src['cmd'] : '';
        $args   = array();

        if (!function_exists('json_encode')) {
            $error = $this->elFinder->error(elFinder::ERROR_CONF, elFinder::ERROR_CONF_NO_JSON);
            $this->output(array('error' => '{"error":["'.implode('","', $error).'"]}', 'raw' => true));
        }

        if (!$this->elFinder->loaded()) {
            $this->output(array('error' => $this->elFinder->error(elFinder::ERROR_CONF, elFinder::ERROR_CONF_NO_VOL), 'debug' => $this->elFinder->mountErrors));
        }

        // telepat_mode: on
        if (!$cmd && $isPost) {
            $this->output(array('error' => $this->elFinder->error(elFinder::ERROR_UPLOAD, elFinder::ERROR_UPLOAD_TOTAL_SIZE), 'header' => 'Content-Type: text/html'));
        }
        // telepat_mode: off

        if (!$this->elFinder->commandExists($cmd)) {
            $this->output(array('error' => $this->elFinder->error(elFinder::ERROR_UNKNOWN_CMD)));
        }

        // collect required arguments to exec command
        foreach ($this->elFinder->commandArgsList($cmd) as $name => $req) {
            $arg = $name == 'FILES'
                ? $_FILES
                : (isset($src[$name]) ? $src[$name] : '');

            if (!is_array($arg)) {
                $arg = trim($arg);
            }
            if ($req && (!isset($arg) || $arg === '')) {
                $this->output(array('error' => $this->elFinder->error(elFinder::ERROR_INV_PARAMS, $cmd)));
            }
            $args[$name] = $arg;
        }

        $args['debug'] = isset($src['debug']) ? !!$src['debug'] : false;

        $this->output($this->elFinder->exec($cmd, $args));
    }
1000684
public function run(): void
    {
        // dynamicly parse input params
        $args = func_get_args();
        
        if (count($args) < 1) {
            return;
        }
        
        // get event name
        $eventName = array_shift($args);
        // get event args as array if passed
        $eventArgs = @array_shift($args);

        // if event is registered
        if (isset($this->events[$eventName]) && Any::isArray($this->events[$eventName])) {
            foreach ($this->events[$eventName] as $callback) {
                // call anonymous function with args if passed
                call_user_func_array($callback, $eventArgs);
            }
        }
        
        // set to post runned actions
        $this->runned[$eventName] = $eventArgs;
    }
1351364
public function run() {
			$this->execute();

			if ($handler = $this->getFormHandler(@$_REQUEST['_form_name']))
				call_user_func($handler, $_REQUEST);
		}
192847
public function run()
    {
        $table = $this->table(CMS_TABLE_USERS);
        $table->insert($this->records)->save();
    }
974237
public function run()
    {
        Model::unguard();

        DB::table('user__users')->delete();
        DB::table('user__roles')->delete();
        DB::table('user__password_resets')->delete();
        DB::table('user__role_user')->delete();
        DB::table('user__permissions')->delete();
        DB::table('user__permission_role')->delete();

        $this->createAdmin();
        $this->createDemo();

        $this->createUsers();
    }
315700
public function run()
    {
        try {
            $this->loop->run();
        } catch (WorkerException $e) {
            $this->logger->error('Worker Error: ' . $e->getMessage());
        }
    }