for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the BenGorFile package.
*
* (c) Beñat Espiña <[email protected]>
* (c) Gorka Laucirica <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace BenGorFile\FileBundle\DependencyInjection\Compiler\Routing;
/**
* @author Beñat Espiña <[email protected]>
class UploadRoutesLoaderBuilder extends RoutesLoaderBuilder
{
protected function definitionName()
return 'bengor.file_bundle.routing.upload_routes_loader';
}
protected function defaultRouteName($file)
return sprintf('bengor_file_%s_upload', $file);
protected function defaultRoutePath($file)
return sprintf('/%ss/upload', $file);
protected function definitionApiName()
return 'bengor.file_bundle.routing.api_upload_routes_loader';
protected function defaultApiRouteName($file)
return sprintf('bengor_file_%s_api_upload', $file);
protected function defaultApiRoutePath($file)
return sprintf('/api/%ss/upload', $file);