Set shortcuts to aliased classes.

@param array $shortcuts Shortcut to alias map.

@return void
178277
public function setShortcuts(array $shortcuts)
    {
        $lowered = [];

        foreach ($shortcuts as $from => $to) {
            $lowered[strtolower($from)] = strtolower($to);
        }

        $this->shortcuts = $lowered;
    }
1196315
public function setCommands(array $commands)
    {
        $names = [];
        foreach ($commands as $command) {
            $names = \array_merge([$command->getName()], $names);
            $names = \array_merge($command->getAliases(), $names);
        }
        $this->commands = $names;
    }
160716
public function loadAliases(array $aliases)
    {
        foreach ($aliases as $alias => $path) {
            $this->alias($alias, $path);
        }

        return $this;
    }
357859
public function addNamespacePrefixes(array $prefixes) : void
    {
        $this->prefixes = array_merge($this->prefixes, $prefixes);
        $this->paths    = array_merge($this->paths, array_keys($prefixes));
    }
813090
protected function addAliases($aliases)
    {
        if ($aliases == null) {
            return;
        }
        foreach ($aliases as $alias => $aliasClass) {
            $this->output->writeln('<info>Adding '.$aliasClass.' to Laravel config app.php file</info>');
            $this->addAlias("'$alias' => ".$aliasClass);
        }
    }
843504
public function deserialize(array $data, Shortcut $shortcut)
    {
        if (!empty($data['target']) &&
            !empty($data['target']['id']) &&
            (!$shortcut->getTarget() || $data['target']['id'] !== $shortcut->getTarget()->getUuid())
        ) {
            // the target is specified and as changed
            /** @var ResourceNode $target */
            $target = $this->om
                ->getRepository('ClarolineCoreBundle:Resource\ResourceNode')
                ->findOneBy(['uuid' => $data['target']['id']]);

            $shortcut->setTarget($target);
        }
    }
1367988
public void setAliases(java.util.Collection<AliasListEntry> aliases) {
        if (aliases == null) {
            this.aliases = null;
            return;
        }

        this.aliases = new com.ibm.cloud.objectstorage.internal.SdkInternalList<AliasListEntry>(aliases);
    }
1078669
public function registerCommands(array $commands)
    {
        foreach ($commands as $command) {
            $instance = $this->app->make($command);

            $instance->boot($this->app);

            $this->addCommand($instance->signature, [$instance, 'register'], [
                'shortdesc' => $instance->description,
            ]);
        }
    }
1140708
public function setAliases(array $aliases)
    {
        $this->aliases = [];

        foreach ($aliases as $alias => $countryCode) {
            $this->aliases[strtoupper($alias)] = strtoupper($countryCode);
        }
    }
1097426
public function setMappings($mappings)
    {
        if ($mappings instanceof \Closure) {
            $mappings = $mappings();
        }

        $this->mappings = (array) $mappings;

        return $this;
    }
868721
private void bindShortcuts(Map<Object, Object> shortcuts) {
        for (Object commandName : shortcuts.keySet()) {
            bindShortcuts(commandName.toString(), shortcuts.get(commandName).toString());
        }
    }
1277949
public function setControllers(array $controllers)
	{
	    foreach ($controllers as $name => $controller) {
	        $this->setController($name, $controller);
	    }
	}
630159
public function updateClassNames(&$classes)
    {
        if (!$this->apply()) {
            return;
        }
        
        if ($class = $this->owner->PaginationSizeClass) {
            $classes[] = $class;
        }
        
        if ($class = $this->owner->PaginationButtonModeClass) {
            $classes[] = $class;
        }
    }
573697
public function registerAliases(array $aliases)
    {

        foreach ($aliases as $alias => $className)
            $this->registerAlias($alias, $className);

        return $this;
    }
579592
public function setAliases(array $names) {
        if ($this->frozen)      throw new RuntimeException('Configuration of "'.get_class($this).'" is frozen');
        if ($this->name === '') throw new IllegalStateException('A default command (name="") cannot have aliases');

        foreach ($names as $i => $alias) {
            $this->validateName($alias);
        }
        $this->aliases = array_diff($names, [$this->name]);     // remove an overlapping command name
        return $this;
    }
1210504
public function updateClassNames(&$classes)
    {
        // Update Class Names (via parent):
        
        parent::updateClassNames($classes);
        
        // Update Class Names:
        
        if ($this->owner->isEdgeToEdge()) {
            $classes[] = $this->style('column.edge-to-edge');
        }
    }
112065
protected function setMethods($methods): void
    {
        if (\is_string($methods)) {
            $methods = [$methods];
        } elseif (!\is_array($methods)) {
            throw new RouterException('Method invalid');
        }

        foreach ($methods as $method) {
            if (!\in_array($method, Request::$methods, true)) {
                throw new RouterException('Method invalid: ' . $method);
            }
        }

        $this->methods = $methods;
    }