<?php

$loader = require_once __DIR__.'/../vendor/autoload.php';
$loader->add('Sitemap\\', __DIR__);
<?php

$loader = require __DIR__.'/../vendor/autoload.php';
$loader->add('Sitemap\\', __DIR__);

Use require instead of require_once
Use require instead of require_once
