<?php
/*
 * This file is part of the TubeLink package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @licence MIT
 */

namespace TubeLink;

use TubeLink\Service\ServiceInterface;
use TubeLink\Exception\ServiceNotFoundException;

/**
 * Entry point to the TubeLink library.
 *
 * @author Jérôme Tamarelle <jerome@tamarelle.net>
 */
class TubeLink implements TubeLinkInterface
{
    private $services = array();

    /**
     * Register a service detector
     *
     * @return TubeLink
     */
    public function registerService(ServiceInterface $service)
    {
        $this->services[] = $service;

        return $this;
    }

    /**
     * {@inheritDoc}
     */
    public function parse($url)
    {
        foreach ($this->services as $service) {
            $video = $service->parse($url);

            if (false !== $video) {
                return $video;
            }
        }

        throw new ServiceNotFoundException($url);
    }

    /**
     * Create a TubeLink instance with all services registered.
     *
     * @return TubeLink\TubeLink
     */
    static public function create()
    {
        $t = new static();

        $t->registerService(new Service\Youtube());
        $t->registerService(new Service\Dailymotion());
        $t->registerService(new Service\Vimeo());

        return $t;
    }
}

<?php
/*
 * This file is part of the TubeLink package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @licence MIT
 */

namespace TubeLink;

use TubeLink\Service\ServiceInterface;
use TubeLink\Exception\ServiceNotFoundException;

/**
 * Entry point to the TubeLink library.
 *
 * @author Jérôme Tamarelle <jerome@tamarelle.net>
 */
class TubeLink implements TubeLinkInterface
{
    private $services = array();

    /**
     * Register a service detector
     *
     * @return TubeLink
     */
    public function registerService(ServiceInterface $service)
    {
        $this->services[] = $service;

        return $this;
    }

    /**
     * {@inheritDoc}
     */
    public function parse($url)
    {
        foreach ($this->services as $service) {
            $video = $service->parse($url);

            if (false !== $video) {
                return $video;
            }
        }

        throw new ServiceNotFoundException($url);
    }

    /**
     * Create a TubeLink instance with all services registered.
     *
     * @return TubeLink\TubeLink
     */
    static public function create()
    {
        $t = new static();

        $t->registerService(new Service\Youtube());
        $t->registerService(new Service\Dailymotion());
        $t->registerService(new Service\Vimeo());
        $t->registerService(new Service\Spotify());

        return $t;
    }
}

Add Spotify in the factory method
Add Spotify in the factory method