PHP 8.2.30
Preview: Alias.php Size: 1.25 KB
/proc/self/root/opt/cloudlinux/alt-php53/root/usr/share/pear/Symfony/Component/DependencyInjection/Alias.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\DependencyInjection;

/**
 * @api
 */
class Alias
{
    private $id;
    private $public;

    /**
     * Constructor.
     *
     * @param string  $id     Alias identifier
     * @param Boolean $public If this alias is public
     *
     * @api
     */
    public function __construct($id, $public = true)
    {
        $this->id = strtolower($id);
        $this->public = $public;
    }

    /**
     * Checks if this DI Alias should be public or not.
     *
     * @return Boolean
     *
     * @api
     */
    public function isPublic()
    {
        return $this->public;
    }

    /**
     * Sets if this Alias is public.
     *
     * @param Boolean $boolean If this Alias should be public
     *
     * @api
     */
    public function setPublic($boolean)
    {
        $this->public = (Boolean) $boolean;
    }

    /**
     * Returns the Id of this alias.
     *
     * @return string The alias id
     *
     * @api
     */
    public function __toString()
    {
        return $this->id;
    }
}

Directory Contents

Dirs: 7 × Files: 19

Name Size Perms Modified Actions
Compiler DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
Dumper DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
Exception DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
Extension DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
LazyProxy DIR
- drwxr-xr-x 2024-03-03 22:55:07
Edit Download
Loader DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
1.25 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
349 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
16.57 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
873 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
714 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
755 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
32.63 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
3.77 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
14.30 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
4.58 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
1.19 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
834 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
767 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
1.54 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
877 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
538 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
3.32 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
749 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
823 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).