@@ -45,12 +45,12 @@ Or you can configure it in your widget:
4545
4646.. code-block :: php
4747
48- $builder->add('field', 'ckeditor', array(
49- 'filebrowsers' => array(
48+ $builder->add('field', 'ckeditor', [
49+ 'filebrowsers' => [
5050 'VideoUpload',
5151 'VideoBrowse',
52- ) ,
53- ) );
52+ ] ,
53+ ] );
5454
5555 Routing Options
5656---------------
@@ -88,13 +88,13 @@ Or you can configure it your widget:
8888
8989.. code-block :: php
9090
91- $builder->add('field', 'ckeditor', array(
92- 'config' => array(
91+ $builder->add('field', 'ckeditor', [
92+ 'config' => [
9393 'filebrowserBrowseRoute' => 'my_route',
94- 'filebrowserBrowseRouteParameters' => array( 'slug' => 'my-slug') ,
94+ 'filebrowserBrowseRouteParameters' => [ 'slug' => 'my-slug'] ,
9595 'filebrowserBrowseRouteType' => UrlGeneratorInterface::ABSOLUTE_URL,
96- ) ,
97- ) );
96+ ] ,
97+ ] );
9898
9999 Dynamic Routing
100100~~~~~~~~~~~~~~~
@@ -108,17 +108,17 @@ but much more powerful closure and so make it aware of your dependencies:
108108 // A blog post...
109109 $post = $manager->find($id);
110110
111- $builder->add('field', 'ckeditor', array(
112- 'config' => array(
111+ $builder->add('field', 'ckeditor', [
112+ 'config' => [
113113 'filebrowserBrowseHandler' => function (RouterInterface $router) use ($post) {
114114 return $router->generate(
115115 'my_route',
116- array( 'slug' => $post->getSlug()) ,
116+ [ 'slug' => $post->getSlug()] ,
117117 UrlGeneratorInterface::ABSOLUTE_URL
118118 );
119119 },
120- ) ,
121- ) );
120+ ] ,
121+ ] );
122122
123123 Integration with Other Projects
124124-------------------------------
0 commit comments