Netson\L4gettext\Commands\ListCommand::fire PHP Method

fire() public method

Execute the console command.
public fire ( ) : void
return void
    public function fire()
    {
        /**
         * lists
         */
        $locales = Config::get("l4gettext::locales.list");
        $encodings = Config::get("l4gettext::encodings.list");
        /**
         * list locales
         */
        $this->info("  listing supported locales: [" . count($locales) . "]");
        // loop through locales
        foreach ($locales as $l) {
            $this->comment("  - " . $l);
        }
        /**
         * list encodings
         */
        $this->info("  listing supported encodings: [" . count($encodings) . "]");
        // loop through encodings
        foreach ($encodings as $e) {
            $this->comment("  - " . $e);
        }
        /**
         * list current default settings
         */
        $this->info("  current default setting: [" . L4gettext::getLocaleAndEncoding() . "]");
    }