anime-db / anime-db

Anime DB

Home Page:http://anime-db.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Insight] Absolute path constants __DIR__ and __FILE__ should not be used - in src/Composer/Job/Job.php, line 80

peter-gribanov opened this issue · comments

in src/Composer/Job/Job.php, line 80

__DIR__ and __FILE__ constants may conflict with the Symfony resource overriding system

     * @param \Composer\Package\Package $package
     * @param string $root_dir
     */
    public function __construct(Package $package, $root_dir = '')
    {
        $this->root_dir = $root_dir ?: __DIR__.'/../../../';
        $this->package = $package;
        $this->package->setExtra(array_merge([
                'anime-db-routing' => '',
                'anime-db-config' => '',
                'anime-db-bundle' => '',