From 1324fc061ab8ce70d20df97fbcec77a9228fe402 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Mon, 11 Jul 2016 16:48:37 -0400 Subject: [PATCH] Deleting index files - using globbing --- components/class_loader.rst | 10 ++ components/class_loader/index.rst | 16 --- components/config.rst | 12 ++- components/config/index.rst | 9 -- components/console.rst | 16 +-- components/console/index.rst | 13 --- components/dependency_injection.rst | 10 +- components/dependency_injection/index.rst | 18 ---- components/event_dispatcher.rst | 9 ++ components/event_dispatcher/index.rst | 10 -- components/expression_language.rst | 9 ++ components/expression_language/index.rst | 9 -- components/filesystem.rst | 9 ++ components/filesystem/index.rst | 7 -- components/form.rst | 9 ++ components/form/index.rst | 8 -- components/http_foundation.rst | 9 ++ components/http_foundation/index.rst | 11 -- components/index.rst | 51 +-------- components/map.rst.inc | 125 ---------------------- components/security.rst | 13 +-- components/security/index.rst | 10 -- components/templating.rst | 9 ++ components/templating/index.rst | 11 -- components/translation.rst | 9 ++ components/translation/index.rst | 8 -- components/var_dumper.rst | 9 ++ components/var_dumper/index.rst | 7 -- components/yaml.rst | 9 ++ components/yaml/index.rst | 7 -- index.rst | 12 --- redirection_map | 12 +++ 32 files changed, 138 insertions(+), 348 deletions(-) delete mode 100644 components/class_loader/index.rst delete mode 100644 components/config/index.rst delete mode 100644 components/console/index.rst delete mode 100644 components/dependency_injection/index.rst delete mode 100644 components/event_dispatcher/index.rst delete mode 100644 components/expression_language/index.rst delete mode 100644 components/filesystem/index.rst delete mode 100644 components/form/index.rst delete mode 100644 components/http_foundation/index.rst delete mode 100644 components/map.rst.inc delete mode 100644 components/security/index.rst delete mode 100644 components/templating/index.rst delete mode 100644 components/translation/index.rst delete mode 100644 components/var_dumper/index.rst delete mode 100644 components/yaml/index.rst diff --git a/components/class_loader.rst b/components/class_loader.rst index 859cc432a18..4accf4a39fd 100644 --- a/components/class_loader.rst +++ b/components/class_loader.rst @@ -50,6 +50,16 @@ You can install the component in 2 different ways: .. include:: /components/require_autoload.rst.inc +Learn More +---------- + +.. toctree:: + :glob: + :maxdepth: 1 + + class_loader/class_loader + class_loader/* + .. _PSR-0: http://www.php-fig.org/psr/psr-0/ .. _PSR-4: http://www.php-fig.org/psr/psr-4/ .. _`autoloading mechanism`: http://php.net/manual/en/language.oop5.autoload.php diff --git a/components/class_loader/index.rst b/components/class_loader/index.rst deleted file mode 100644 index 7c5b8b196cf..00000000000 --- a/components/class_loader/index.rst +++ /dev/null @@ -1,16 +0,0 @@ -ClassLoader -=========== - -.. toctree:: - :maxdepth: 2 - - class_loader - psr4_class_loader - map_class_loader - cache_class_loader - class_map_generator - -.. toctree:: - :hidden: - - debug_class_loader diff --git a/components/config.rst b/components/config.rst index 89077ac5916..5cd178c2744 100644 --- a/components/config.rst +++ b/components/config.rst @@ -20,11 +20,13 @@ You can install the component in 2 different ways: .. include:: /components/require_autoload.rst.inc -Sections --------- +Learn More +---------- -* :doc:`/components/config/resources` -* :doc:`/components/config/caching` -* :doc:`/components/config/definition` +.. toctree:: + :maxdepth: 1 + :glob: + + config/* .. _Packagist: https://packagist.org/packages/symfony/config diff --git a/components/config/index.rst b/components/config/index.rst deleted file mode 100644 index 5c389f538dd..00000000000 --- a/components/config/index.rst +++ /dev/null @@ -1,9 +0,0 @@ -Config -====== - -.. toctree:: - :maxdepth: 2 - - resources - caching - definition diff --git a/components/console.rst b/components/console.rst index d06394aea43..fcf912e3ff4 100644 --- a/components/console.rst +++ b/components/console.rst @@ -571,14 +571,14 @@ returns the returned code from the command (return value from command's command from the Web, refactor your code and move the logic to a new class. -Learn More! ------------ - -* :doc:`/components/console/usage` -* :doc:`/components/console/single_command_tool` -* :doc:`/components/console/changing_default_command` -* :doc:`/components/console/events` -* :doc:`/components/console/console_arguments` +Learn More +---------- + +.. toctree:: + :maxdepth: 1 + :glob: + + console/* .. _Packagist: https://packagist.org/packages/symfony/console .. _Cmder: http://cmder.net/ diff --git a/components/console/index.rst b/components/console/index.rst deleted file mode 100644 index 45a02d72c15..00000000000 --- a/components/console/index.rst +++ /dev/null @@ -1,13 +0,0 @@ -Console -======= - -.. toctree:: - :maxdepth: 2 - - usage - changing_default_command - single_command_tool - console_arguments - events - logger - helpers/index diff --git a/components/dependency_injection.rst b/components/dependency_injection.rst index 24ca23eb888..ab683e3e042 100644 --- a/components/dependency_injection.rst +++ b/components/dependency_injection.rst @@ -286,5 +286,13 @@ config files: ->register('newsletter_manager', 'NewsletterManager') ->addMethodCall('setMailer', array(new Reference('mailer'))); -.. _Packagist: https://packagist.org/packages/symfony/dependency-injection +Learn More +---------- + +.. toctree:: + :maxdepth: 1 + :glob: + dependency_injection/* + +.. _Packagist: https://packagist.org/packages/symfony/dependency-injection diff --git a/components/dependency_injection/index.rst b/components/dependency_injection/index.rst deleted file mode 100644 index 405255a1b34..00000000000 --- a/components/dependency_injection/index.rst +++ /dev/null @@ -1,18 +0,0 @@ -DependencyInjection -=================== - -.. toctree:: - :maxdepth: 2 - - types - parameters - definitions - synthetic_services - compilation - tags - factories - configurators - parentservices - advanced - lazy_services - workflow diff --git a/components/event_dispatcher.rst b/components/event_dispatcher.rst index a5c39f853e3..f1ea61ec63c 100644 --- a/components/event_dispatcher.rst +++ b/components/event_dispatcher.rst @@ -512,6 +512,15 @@ with some other dispatchers: * :doc:`/components/event_dispatcher/traceable_dispatcher` (provided by the :doc:`HttpKernel component `) +Learn More +---------- + +.. toctree:: + :maxdepth: 1 + :glob: + + event_dispatcher/* + .. _Mediator: https://en.wikipedia.org/wiki/Mediator_pattern .. _Closures: http://php.net/manual/en/functions.anonymous.php .. _PHP callable: http://www.php.net/manual/en/language.pseudo-types.php#language.types.callback diff --git a/components/event_dispatcher/index.rst b/components/event_dispatcher/index.rst deleted file mode 100644 index 5a88107896d..00000000000 --- a/components/event_dispatcher/index.rst +++ /dev/null @@ -1,10 +0,0 @@ -EventDispatcher -=============== - -.. toctree:: - :maxdepth: 2 - - container_aware_dispatcher - generic_event - immutable_dispatcher - traceable_dispatcher diff --git a/components/expression_language.rst b/components/expression_language.rst index 98b4402f7c7..df5af3d18e9 100644 --- a/components/expression_language.rst +++ b/components/expression_language.rst @@ -112,4 +112,13 @@ Caching The component provides some different caching strategies, read more about them in :doc:`/components/expression_language/caching`. +Learn More +---------- + +.. toctree:: + :maxdepth: 1 + :glob: + + expression_language/* + .. _Packagist: https://packagist.org/packages/symfony/expression-language diff --git a/components/expression_language/index.rst b/components/expression_language/index.rst deleted file mode 100644 index 8543eba1684..00000000000 --- a/components/expression_language/index.rst +++ /dev/null @@ -1,9 +0,0 @@ -ExpressionLanguage -================== - -.. toctree:: - :maxdepth: 2 - - syntax - extending - caching diff --git a/components/filesystem.rst b/components/filesystem.rst index eab50f7e6cd..e799dfa2813 100644 --- a/components/filesystem.rst +++ b/components/filesystem.rst @@ -266,4 +266,13 @@ Whenever something wrong happens, an exception implementing An :class:`Symfony\\Component\\Filesystem\\Exception\\IOException` is thrown if directory creation fails. +Learn More +---------- + +.. toctree:: + :maxdepth: 1 + :glob: + + filesystem/* + .. _`Packagist`: https://packagist.org/packages/symfony/filesystem diff --git a/components/filesystem/index.rst b/components/filesystem/index.rst deleted file mode 100644 index a0732362372..00000000000 --- a/components/filesystem/index.rst +++ /dev/null @@ -1,7 +0,0 @@ -Filesystem -========== - -.. toctree:: - :maxdepth: 2 - - lock_handler diff --git a/components/form.rst b/components/form.rst index b3306b24aed..4ca87223b3a 100644 --- a/components/form.rst +++ b/components/form.rst @@ -702,6 +702,15 @@ method to access the list of errors. It returns a This is useful, for example, if you want to use PHP's ``array_`` function on the form errors. +Learn More +---------- + +.. toctree:: + :maxdepth: 1 + :glob: + + form/* + .. _Packagist: https://packagist.org/packages/symfony/form .. _Twig: http://twig.sensiolabs.org .. _`Twig Configuration`: http://twig.sensiolabs.org/doc/intro.html diff --git a/components/form/index.rst b/components/form/index.rst deleted file mode 100644 index 109bce1194e..00000000000 --- a/components/form/index.rst +++ /dev/null @@ -1,8 +0,0 @@ -Form -==== - -.. toctree:: - :maxdepth: 2 - - type_guesser - form_events diff --git a/components/http_foundation.rst b/components/http_foundation.rst index 63d89d8e977..bed2b1e3033 100644 --- a/components/http_foundation.rst +++ b/components/http_foundation.rst @@ -596,6 +596,15 @@ Session The session information is in its own document: :doc:`/components/http_foundation/sessions`. +Learn More +---------- + +.. toctree:: + :maxdepth: 1 + :glob: + + http_foundation/* + .. _Packagist: https://packagist.org/packages/symfony/http-foundation .. _Nginx: http://wiki.nginx.org/XSendfile .. _Apache: https://tn123.org/mod_xsendfile/ diff --git a/components/http_foundation/index.rst b/components/http_foundation/index.rst deleted file mode 100644 index 594c317eb39..00000000000 --- a/components/http_foundation/index.rst +++ /dev/null @@ -1,11 +0,0 @@ -HttpFoundation -============== - -.. toctree:: - :maxdepth: 2 - - sessions - session_configuration - session_testing - session_php_bridge - trusting_proxies diff --git a/components/index.rst b/components/index.rst index d36500b3678..bfb96460a5c 100644 --- a/components/index.rst +++ b/components/index.rst @@ -2,51 +2,8 @@ The Components ============== .. toctree:: - :hidden: - + :maxdepth: 1 + :glob: + using_components - asset - browser_kit - class_loader - class_loader/index - config - config/index - console - console/index - css_selector - debug - dependency_injection - dependency_injection/index - dom_crawler - event_dispatcher - event_dispatcher/index - expression_language - expression_language/index - filesystem - filesystem/index - finder - form - form/index - http_foundation - http_foundation/index - http_kernel - intl - options_resolver - phpunit_bridge - process - property_access - routing - security - security/index - serializer - stopwatch - templating - templating/index - translation - translation/index - var_dumper - var_dumper/index - yaml - yaml/index - -.. include:: /components/map.rst.inc + * diff --git a/components/map.rst.inc b/components/map.rst.inc deleted file mode 100644 index 04e9081d2bf..00000000000 --- a/components/map.rst.inc +++ /dev/null @@ -1,125 +0,0 @@ -* :doc:`/components/using_components` - -* :doc:`/components/asset` - -* :doc:`/components/browser_kit` - -* :doc:`/components/class_loader` - - * :doc:`/components/class_loader/class_loader` - * :doc:`/components/class_loader/psr4_class_loader` - * :doc:`/components/class_loader/map_class_loader` - * :doc:`/components/class_loader/cache_class_loader` - * :doc:`/components/class_loader/class_map_generator` - -* :doc:`/components/config` - - * :doc:`/components/config/resources` - * :doc:`/components/config/caching` - * :doc:`/components/config/definition` - -* :doc:`/components/console` - - * :doc:`/components/console/usage` - * :doc:`/components/console/single_command_tool` - * :doc:`/components/console/changing_default_command` - * :doc:`/components/console/console_arguments` - * :doc:`/components/console/events` - * :doc:`/components/console/logger` - * :doc:`/components/console/helpers/index` - -* :doc:`/components/css_selector` - -* :doc:`/components/debug` - -* :doc:`/components/dependency_injection` - - * :doc:`/components/dependency_injection/types` - * :doc:`/components/dependency_injection/parameters` - * :doc:`/components/dependency_injection/definitions` - * :doc:`/components/dependency_injection/synthetic_services` - * :doc:`/components/dependency_injection/compilation` - * :doc:`/components/dependency_injection/tags` - * :doc:`/components/dependency_injection/factories` - * :doc:`/components/dependency_injection/configurators` - * :doc:`/components/dependency_injection/parentservices` - * :doc:`/components/dependency_injection/advanced` - * :doc:`/components/dependency_injection/lazy_services` - * :doc:`/components/dependency_injection/workflow` - -* :doc:`/components/dom_crawler` - -* :doc:`/components/event_dispatcher` - - * :doc:`/components/event_dispatcher/container_aware_dispatcher` - * :doc:`/components/event_dispatcher/generic_event` - * :doc:`/components/event_dispatcher/immutable_dispatcher` - * :doc:`/components/event_dispatcher/traceable_dispatcher` - -* :doc:`/components/expression_language` - - * :doc:`/components/expression_language/syntax` - * :doc:`/components/expression_language/extending` - * :doc:`/components/expression_language/caching` - -* :doc:`/components/filesystem` - - * :doc:`/components/filesystem/lock_handler` - -* :doc:`/components/finder` - -* :doc:`/components/form` - - * :doc:`/components/form/form_events` - * :doc:`/components/form/type_guesser` - -* :doc:`/components/http_foundation` - - * :doc:`/components/http_foundation/sessions` - * :doc:`/components/http_foundation/session_configuration` - * :doc:`/components/http_foundation/session_testing` - * :doc:`/components/http_foundation/session_php_bridge` - * :doc:`/components/http_foundation/trusting_proxies` - -* :doc:`/components/http_kernel` - -* :doc:`/components/intl` - -* :doc:`/components/options_resolver` - -* :doc:`/components/phpunit_bridge` - -* :doc:`/components/process` - -* :doc:`/components/property_access` - -* :doc:`/components/routing` - -* :doc:`/components/security` - - * :doc:`/components/security/firewall` - * :doc:`/components/security/authentication` - * :doc:`/components/security/authorization` - * :doc:`/components/security/secure_tools` - -* :doc:`/components/serializer` - -* :doc:`/components/stopwatch` - -* :doc:`/components/templating` - - * :doc:`/components/templating/assetshelper` - * :doc:`/components/templating/slotshelper` - -* :doc:`/components/translation` - - * :doc:`/components/translation/usage` - * :doc:`/components/translation/custom_formats` - -* :doc:`/components/var_dumper` - - * :doc:`/components/var_dumper/advanced` - -* :doc:`/components/yaml` - - * :doc:`/components/yaml/yaml_format` diff --git a/components/security.rst b/components/security.rst index 57957f6516a..fd8607f21ef 100644 --- a/components/security.rst +++ b/components/security.rst @@ -38,13 +38,14 @@ used separately: ``symfony/security-acl`` It provides a fine grained permissions mechanism based on Access Control Lists. -Sections --------- +Learn More +---------- -* :doc:`/components/security/firewall` -* :doc:`/components/security/authentication` -* :doc:`/components/security/authorization` -* :doc:`/components/security/secure_tools` +.. toctree:: + :maxdepth: 1 + :glob: + + security/* .. _Packagist: https://packagist.org/packages/symfony/security .. _`CSRF attacks`: https://en.wikipedia.org/wiki/Cross-site_request_forgery diff --git a/components/security/index.rst b/components/security/index.rst deleted file mode 100644 index 4e0c3a56e71..00000000000 --- a/components/security/index.rst +++ /dev/null @@ -1,10 +0,0 @@ -Security -======== - -.. toctree:: - :maxdepth: 2 - - firewall - authentication - authorization - secure_tools \ No newline at end of file diff --git a/components/templating.rst b/components/templating.rst index 02e82f7d8e7..98228f38b3a 100644 --- a/components/templating.rst +++ b/components/templating.rst @@ -201,4 +201,13 @@ method is used. new CustomEngine(...), )); +Learn More +---------- + +.. toctree:: + :maxdepth: 1 + :glob: + + templating/* + .. _Packagist: https://packagist.org/packages/symfony/templating diff --git a/components/templating/index.rst b/components/templating/index.rst deleted file mode 100644 index 78675096ad1..00000000000 --- a/components/templating/index.rst +++ /dev/null @@ -1,11 +0,0 @@ -.. index:: - single: Templating; Templating Helpers - -The Templating Component -======================== - -.. toctree:: - :hidden: - - slotshelper - assetshelper diff --git a/components/translation.rst b/components/translation.rst index 80bbc3a25f0..1817b79c572 100644 --- a/components/translation.rst +++ b/components/translation.rst @@ -212,6 +212,15 @@ Usage Read how to use the Translation component in :doc:`/components/translation/usage`. +Learn More +---------- + +.. toctree:: + :maxdepth: 1 + :glob: + + translation/* + .. _Packagist: https://packagist.org/packages/symfony/translation .. _`ISO 3166-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes .. _`ISO 639-1`: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes diff --git a/components/translation/index.rst b/components/translation/index.rst deleted file mode 100644 index a43b957e55b..00000000000 --- a/components/translation/index.rst +++ /dev/null @@ -1,8 +0,0 @@ -Translation -=========== - -.. toctree:: - :maxdepth: 2 - - usage - custom_formats diff --git a/components/var_dumper.rst b/components/var_dumper.rst index 0e2b0adbf94..b2ad069fb01 100644 --- a/components/var_dumper.rst +++ b/components/var_dumper.rst @@ -283,4 +283,13 @@ then its dump representation:: .. image:: /images/components/var_dumper/09-cut.png +Learn More +---------- + +.. toctree:: + :maxdepth: 1 + :glob: + + var_dumper/* + .. _Packagist: https://packagist.org/packages/symfony/var-dumper diff --git a/components/var_dumper/index.rst b/components/var_dumper/index.rst deleted file mode 100644 index db5c329342d..00000000000 --- a/components/var_dumper/index.rst +++ /dev/null @@ -1,7 +0,0 @@ -VarDumper -========= - -.. toctree:: - :maxdepth: 2 - - advanced diff --git a/components/yaml.rst b/components/yaml.rst index bbe74c996f6..5b2c165f20d 100644 --- a/components/yaml.rst +++ b/components/yaml.rst @@ -253,6 +253,15 @@ representation of the object. parsers will likely not recognize the ``php/object`` tag and non-PHP implementations certainly won't - use with discretion! +Learn More +---------- + +.. toctree:: + :maxdepth: 1 + :glob: + + yaml/* + .. _YAML: http://yaml.org/ .. _Packagist: https://packagist.org/packages/symfony/yaml .. _`YAML 1.2 version specification`: http://yaml.org/spec/1.2/spec.html diff --git a/components/yaml/index.rst b/components/yaml/index.rst deleted file mode 100644 index bd1dce02afb..00000000000 --- a/components/yaml/index.rst +++ /dev/null @@ -1,7 +0,0 @@ -Yaml -==== - -.. toctree:: - :maxdepth: 2 - - yaml_format diff --git a/index.rst b/index.rst index 7cdb2cac8b8..84586f2731a 100644 --- a/index.rst +++ b/index.rst @@ -33,18 +33,6 @@ Topics * :doc:`/controller` -Book ----- - -Dive into Symfony with the topical guides: - -.. include:: /map.rst.inc - -Cookbook --------- - -Read the :doc:`Cookbook `. - Best Practices -------------- diff --git a/redirection_map b/redirection_map index c36341a5548..fb6c1e8480e 100644 --- a/redirection_map +++ b/redirection_map @@ -247,16 +247,23 @@ /components/browser_kit/index /components/browser_kit /components/browser_kit/introduction /components/browser_kit /components/class_loader/introduction /components/class_loader +/components/class_loader/index /components/class_loader /components/config/introduction /components/config +/components/config/index /components/config /components/console/introduction /components/console +/components/console/index /components/console /components/debug/class_loader /components/debug /components/debug/introduction /components/debug /components/debug/index /components/debug /components/dependency_injection/introduction /components/dependency_injection +/components/dependency_injection/index /components/dependency_injection /components/event_dispatcher/introduction /components/event_dispatcher /components/expression_language/introduction /components/expression_language +/components/expression_language/index /components/expression_language /components/filesystem/introduction /components/filesystem +/components/filesystem/index /components/filesystem /components/form/introduction /components/form +/components/form/index /components/form /components/http_foundation/introduction /components/http_foundation /components/http_kernel/introduction /components/http_kernel /components/http_kernel/index /components/http_kernel @@ -266,9 +273,14 @@ /components/routing/introduction /components/routing /components/routing/hostname_pattern /routing/hostname_pattern /components/security/introduction /routing/security +/components/security/index /routing/security /components/templating/introduction /routing/templating +/components/templating/index /routing/templating /components/templating/helpers/assetshelper /routing/templating/assetshelper /components/templating/helpers/slotshelper /routing/templating/slotshelper /components/translation/introduction /routing/translation +/components/translation/index /routing/translation /components/var_dumper/introduction /routing/var_dumper +/components/var_dumper/index /routing/var_dumper /components/yaml/introduction /routing/yaml +/components/yaml/index /routing/yaml