File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11<?php
22declare (strict_types=1 );
33
4- namespace Codesushi \VariatorBundle ;
4+ namespace Coshi \VariatorBundle ;
55
6- use Codesushi \Variator \ConfigResolver as BaseResolver ;
7- use Codesushi \Variator \Exception \InvalidConfigurationException ;
6+ use Coshi \Variator \ConfigResolver as BaseResolver ;
7+ use Coshi \Variator \Exception \InvalidConfigurationException ;
88use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
99use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
1010use Symfony \Component \DependencyInjection \Exception \ServiceCircularReferenceException ;
Original file line number Diff line number Diff line change 1+ <?php
2+ namespace Coshi \VariatorBundle ;
3+
4+ use Symfony \Component \HttpKernel \Bundle \Bundle ;
5+
6+ class CoshiVariatorBundle extends Bundle
7+ {
8+ }
Original file line number Diff line number Diff line change 11<?php
22
3- namespace Codesushi \VariatorBundle \DependencyInjection ;
3+ namespace Coshi \VariatorBundle \DependencyInjection ;
44
55use Symfony \Component \Config \Definition \Builder \TreeBuilder ;
66use Symfony \Component \Config \Definition \ConfigurationInterface ;
@@ -13,7 +13,7 @@ class Configuration implements ConfigurationInterface
1313 public function getConfigTreeBuilder ()
1414 {
1515 $ treeBuilder = new TreeBuilder ();
16- $ rootNode = $ treeBuilder ->root ('codesushi_variator ' );
16+ $ rootNode = $ treeBuilder ->root ('coshi_variator ' );
1717
1818 return $ treeBuilder ;
1919 }
Original file line number Diff line number Diff line change 11<?php
22declare (strict_types=1 );
33
4- namespace Codesushi \VariatorBundle \DependencyInjection ;
4+ namespace Coshi \VariatorBundle \DependencyInjection ;
55
66use Symfony \Component \DependencyInjection \ContainerBuilder ;
77use Symfony \Component \Config \FileLocator ;
88use Symfony \Component \HttpKernel \DependencyInjection \Extension ;
99use Symfony \Component \DependencyInjection \Loader ;
1010
11- class CodesushiVariatorExtension extends Extension
11+ class CoshiVariatorExtension extends Extension
1212{
1313 /**
1414 * {@inheritDoc}
1515 */
1616 public function load (array $ configs , ContainerBuilder $ container )
1717 {
1818 $ config = $ this ->processConfiguration (new Configuration (), $ configs );
19- $ container ->setParameter ('codesushi_variator ' , $ config );
19+ $ container ->setParameter ('coshi_variator ' , $ config );
2020 $ loader = new Loader \XmlFileLoader ($ container , new FileLocator (__DIR__ . '/../Resources/config ' ));
2121 $ loader ->load ('services.xml ' );
2222 }
Original file line number Diff line number Diff line change 1- A Symfony bundle wrapper for codesushi /variator library
1+ A Symfony bundle wrapper for coshi /variator library
22-------------------------------------------------------
33
44Allows to specify callbacks with services:
@@ -15,7 +15,7 @@ Brings new variation type: "iteratorResult" to operate over the Doctrine Iterabl
1515Usage:
1616
1717````
18- $builder = $container->get('codesushi .variator_bundle.builder');
18+ $builder = $container->get('coshi .variator_bundle.builder');
1919
2020 $config = [
2121 'id' => [
3535You can strip values to several chunks. Variator will then fetch the data using LIMIT and OFFSET SQL statements:
3636
3737````
38- $builder = $container->get('codesushi .variator_bundle.builder');
38+ $builder = $container->get('coshi .variator_bundle.builder');
3939
4040 $config = [
4141 'id' => [
Original file line number Diff line number Diff line change 55 xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" >
66
77 <parameters >
8- <parameter key =" codesushi .variator_bundle.config_resolver.class" >Codesushi \VariatorBundle\ConfigResolver</parameter >
9- <parameter key =" codesushi .variator_bundle.factory.class" >Codesushi \VariatorBundle\VariationFactory</parameter >
8+ <parameter key =" coshi .variator_bundle.config_resolver.class" >Coshi \VariatorBundle\ConfigResolver</parameter >
9+ <parameter key =" coshi .variator_bundle.factory.class" >Coshi \VariatorBundle\VariationFactory</parameter >
1010 </parameters >
1111
1212 <services >
1313 <service
14- id =" codesushi .variator_bundle.config_resolver"
15- class =" %codesushi .variator_bundle.config_resolver.class%"
14+ id =" coshi .variator_bundle.config_resolver"
15+ class =" %coshi .variator_bundle.config_resolver.class%"
1616 shared =" false"
1717 >
1818 <call method =" setContainer" >
1919 <argument type =" service" id =" service_container" />
2020 </call >
2121 </service >
2222
23- <service id =" codesushi .variator_bundle.factory" class =" %codesushi .variator_bundle.factory.class%" >
24- <argument type =" service" id =" codesushi .variator_bundle.config_resolver" />
23+ <service id =" coshi .variator_bundle.factory" class =" %coshi .variator_bundle.factory.class%" >
24+ <argument type =" service" id =" coshi .variator_bundle.config_resolver" />
2525 <call method =" setContainer" >
2626 <argument type =" service" id =" service_container" />
2727 </call >
2828 </service >
2929
30- <service id =" codesushi .variator_bundle.builder" class =" Codesushi \Variator\VariationsTreeBuilder" >
31- <argument type =" service" id =" codesushi .variator_bundle.factory" />
30+ <service id =" coshi .variator_bundle.builder" class =" Coshi \Variator\VariationsTreeBuilder" >
31+ <argument type =" service" id =" coshi .variator_bundle.factory" />
3232 </service >
3333 </services >
3434
Original file line number Diff line number Diff line change 11<?php
22
3- namespace Codesushi \VariatorBundle \Tests ;
3+ namespace Coshi \VariatorBundle \Tests ;
44
5- use Codesushi \VariatorBundle \DependencyInjection \CodesushiVariatorExtension ;
6- use Codesushi \Variator \Variation \VariationInterface ;
7- use Codesushi \Variator \VariationsTreeBuilder ;
8- use Codesushi \VariatorBundle \Tests \Fixtures \TestService ;
5+ use Coshi \VariatorBundle \DependencyInjection \CoshiVariatorExtension ;
6+ use Coshi \Variator \Variation \VariationInterface ;
7+ use Coshi \Variator \VariationsTreeBuilder ;
8+ use Coshi \VariatorBundle \Tests \Fixtures \TestService ;
99use Symfony \Component \DependencyInjection \ContainerBuilder ;
1010
1111class ConfigResolverTest extends \PHPUnit_Framework_TestCase
@@ -23,9 +23,9 @@ class ConfigResolverTest extends \PHPUnit_Framework_TestCase
2323 public function setUp ()
2424 {
2525 $ container = new ContainerBuilder ();
26- $ extension = new CodesushiVariatorExtension ();
26+ $ extension = new CoshiVariatorExtension ();
2727 $ extension ->load ([], $ container );
28- $ this ->variationsBuilder = $ container ->get ('codesushi .variator_bundle.builder ' );
28+ $ this ->variationsBuilder = $ container ->get ('coshi .variator_bundle.builder ' );
2929 $ this ->service = new TestService ();
3030 $ container ->set ('simple_test_service ' , $ this ->service );
3131 }
Original file line number Diff line number Diff line change 11<?php
22
3- namespace Codesushi \VariatorBundle \Tests \Fixtures ;
3+ namespace Coshi \VariatorBundle \Tests \Fixtures ;
44
5- use Codesushi \Variator \Tests \Fixtures \TestClass ;
5+ use Coshi \Variator \Tests \Fixtures \TestClass ;
66
77class TestService extends TestClass
88{
Original file line number Diff line number Diff line change 11<?php
22declare (strict_types=1 );
33
4- namespace Codesushi \VariatorBundle \Variation \Type ;
4+ namespace Coshi \VariatorBundle \Variation \Type ;
55
6- use Codesushi \Variator \ConfigResolver ;
7- use Codesushi \Variator \Variation \AbstractVariation ;
6+ use Coshi \Variator \ConfigResolver ;
7+ use Coshi \Variator \Variation \AbstractVariation ;
88
99class IteratorResultVariation extends AbstractVariation
1010{
You can’t perform that action at this time.
0 commit comments