Adds a votable uploader

@param UploaderVotableInterface $votable A votable uploader
@param boolean                  $prepend Whether to prepend the votable
483900
public function addVotable(UploaderVotableInterface $votable, $prepend = false)
    {
        if ($prepend) {
            array_unshift($this->votables, $votable);
        } else {
            $this->votables[] = $votable;
        }
    }
1276177
public static function add_namespaces(array $namespaces, $prepend = false)
	{
		if ( ! $prepend)
		{
			static::$namespaces = array_merge(static::$namespaces, $namespaces);
		}
		else
		{
			static::$namespaces = $namespaces + static::$namespaces;
		}
	}
967242
public function prepend(ContainerBuilder $container): void
    {
        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));

        $this->prependTwig($container, $loader);
    }
60136
public function prePersist(LifecycleEventArgs $args)
    {
        $object = $args->getObject();
        if ($object instanceof UploadObjectInterface) {
            $this->prepareUploadFileReferences($object);
        }
    }
75944
public function addVotable(DownloaderVotableInterface $votable, $prepend = false)
    {
        if ($prepend) {
            array_unshift($this->votables, $votable);
        } else {
            $this->votables[] = $votable;
        }
    }
148319
public function addCache(Cache $cache, $prepend = true)
    {
        if ($prepend) {
            \array_unshift($this->caches, $cache);
        } else {
            $this->caches[] = $cache;
        }
    }
583276
public function addDecorator($identifier, $prepend = false)
    {
        if($prepend) {
            array_unshift($this->__decorators, $identifier);
        } else {
            array_push($this->__decorators, $identifier);
        }

        return $this;
    }
739887
public function concat($string, $prepend = false)
    {
        $this->string = $prepend ? (string) $string . $this->string : $this->string . (string) $string;

        return $this;
    }
776441
public function prependFile($src, $type = 'text/javascript', array $params = [], $conditional = '')
    {
        return $this->setFile($src, $type, $params, true, $conditional);
    }
1030695
public function addDomNode(\DOMNode $dom_node, $prepend=false)
    {
        if ($prepend) {
            array_unshift($this->nodes, $dom_node);
        } else {
            $this->nodes[] = $dom_node;
        }

        $this->length = \count($this->nodes);
        $this->setDomDocument($dom_node->ownerDocument);
    }
1357156
public function add($prefix, $dir, $prepend = false)
    {
        $prefix = trim($prefix, '\\') . '\\';
        $dir = rtrim($dir, DIRECTORY_SEPARATOR) . '/';

        if (isset($this->prefixes[$prefix]) === false) {
            $this->prefixes[$prefix] = [];
        }

        if ($prepend) {
            array_unshift($this->prefixes[$prefix], $dir);
        } else {
            array_push($this->prefixes[$prefix], $dir);
        }

        return $this;
    }
132290
public function prePersist(LifecycleEventArgs $event)
    {
        $entity = $event->getEntity();

        if ($entity instanceOf ImageInterface) {
            if ($entity->hasFile()) {
                $this->uploader->upload($entity);
            }
        }
    }
906019
public function prependAll($prepended)
    {
        foreach ($this->storage as &$path) {
            $path->prepend($prepended);
        }

        return $this;
    }
60399
public function addHeader ($string, $prepend = false)
		{
			if ($prepend) {
				$this->prependHeader($string);
			} else {
				$this->headers[] = $string;
			}
		}
358276
public function prepend(): void
    {
        $script = $this->parseArgs(func_get_args());
        if ($script !== false) {
            array_unshift($this->members, $script);
        }
    }
133607
public function addMeta(array $attrs, string $uniqueAttrName = null, bool $prepend = false) {
		$this->htmlProperties->add(self::HEAD_META_KEY, $this->buildKey($attrs, $uniqueAttrName),
				new HtmlElement('meta', $attrs), $prepend);
		
		return $this;
	}
300892
public function addExceptionCallback(callable $callback, $prepend = false )
    {
        if($prepend) {
            array_unshift($this->__exception_callbacks, $callback);
        } else {
            array_push($this->__exception_callbacks, $callback);
        }

        return $this;
    }