Skip to content

Commit b91d92f

Browse files
committed
cs cleanup and stop using deprecated Testing component document
1 parent a3afe2f commit b91d92f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+102
-108
lines changed

Admin/Extension/RouteReferrersExtension.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\RoutingBundle\Admin\Extension;
1413

1514
use Sonata\AdminBundle\Admin\AdminExtension;

Admin/RouteAdmin.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\RoutingBundle\Admin;
1413

1514
use Sonata\AdminBundle\Datagrid\DatagridMapper;

CmfRoutingBundle.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\RoutingBundle;
1413

1514
use Doctrine\Bundle\PHPCRBundle\DependencyInjection\Compiler\DoctrinePhpcrMappingsPass;
@@ -107,7 +106,7 @@ private function buildOrmCompilerPass(ContainerBuilder $container)
107106
* Otherwise use the standalone one from CmfCoreBundle.
108107
*
109108
* @return boolean|string the compiler pass to use or false if no suitable
110-
* one was found
109+
* one was found
111110
*/
112111
private function findDoctrineOrmCompiler()
113112
{

Controller/RedirectController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\RoutingBundle\Controller;
1413

1514
use Symfony\Component\Routing\RouterInterface;

DependencyInjection/CmfRoutingExtension.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\RoutingBundle\DependencyInjection;
1413

1514
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
@@ -18,7 +17,6 @@
1817
use Symfony\Component\DependencyInjection\Reference;
1918
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
2019
use Symfony\Component\Config\FileLocator;
21-
use Symfony\Component\Config\Definition\Processor;
2220
use Symfony\Component\Config\Loader\LoaderInterface;
2321

2422
/**

DependencyInjection/Compiler/SetRouterPass.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\RoutingBundle\DependencyInjection\Compiler;
1413

1514
use Symfony\Component\DependencyInjection\ContainerBuilder;

DependencyInjection/Configuration.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\RoutingBundle\DependencyInjection;
1413

1514
use Symfony\Component\Config\Definition\ConfigurationInterface;

Doctrine/DoctrineProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\RoutingBundle\Doctrine;
1413

1514
use Doctrine\Common\Persistence\ManagerRegistry;
@@ -53,7 +52,7 @@ abstract class DoctrineProvider
5352

5453
/**
5554
* @param ManagerRegistry $managerRegistry
56-
* @param string $className
55+
* @param string $className
5756
*/
5857
public function __construct(ManagerRegistry $managerRegistry, $className = null)
5958
{

Doctrine/Orm/ContentRepository.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Orm;
1413

1514
use Symfony\Cmf\Component\Routing\ContentRepositoryInterface;
1615
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\DoctrineProvider;
1716

1817
/**
19-
* Abstract content repository for ORM
18+
* Abstract content repository for ORM.
19+
*
20+
* This repository follows the pattern of FQN:id. That is, the full model class
21+
* name, then a colon, then the id. For example "Acme\Content:12".
22+
*
23+
* This will only work with single column ids.
2024
*
2125
* @author teito
2226
*/
@@ -37,9 +41,7 @@ protected function getModelAndId($identifier)
3741
/**
3842
* {@inheritDoc}
3943
*
40-
* @param string $id The ID contains both model name and id, seperated by a colon.
41-
* The model name must not contain a colon. For instance, "Acme\Content:12"
42-
* tries to find the Acme\Content object where id = 12
44+
* @param string $id The ID contains both model name and id, separated by a colon.
4345
*/
4446
public function findById($id)
4547
{

Doctrine/Orm/Route.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Orm;
1413

1514
use Symfony\Cmf\Bundle\RoutingBundle\Model\Route as RouteModel;

0 commit comments

Comments
 (0)