# yatra/trunk/app/Services/SetupService.php

Yatra – Travel Booking &amp; Tour Operator Software, version trunk. 35 lines.

- Page: https://pluginprobe.com/plugins/yatra/trunk/code/app/Services/SetupService.php
- Raw: https://pluginprobe.com/plugins/yatra/trunk/raw/app/Services/SetupService.php
- Modified: 2026-04-14T03:47:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yatra/trunk/code/app/Services/SetupService.php#L10-L20`.

```php
<?php
/**
 * Setup Service for Yatra Plugin
 *
 * Handles plugin activation and setup tasks
 *
 * @package Yatra\Services
 */

namespace Yatra\Services;

class SetupService
{
    /**
     * Register activation hook
     */
    public static function registerActivationHook(): void
    {
        register_activation_hook(YATRA_PLUGIN_FILE, [self::class, 'activate']);
    }

    /**
     * Plugin activation callback
     */
    public static function activate(): void
    {
        // Run centralized installer for default settings
        InstallerService::install();
        
        if (class_exists('Yatra\Services\SetupWizardService')) {
            SetupWizardService::triggerWizardOnActivation();
        }
    }
}

```
