Commit Graph

1965 Commits (70ce81aafdf8519a85831a8c40b1fcc45b947655)

Author SHA1 Message Date
Niklas Fiekas 3a10d518e3 Clean-up UrlMatcher.php. 2012-05-19 00:01:08 -05:00
Niklas Fiekas b5d1b095a4 Documentation improvements and cleanup. 2012-05-19 00:01:08 -05:00
Jennifer Hodgdon 467a825239 Issue #1358944 by wulff, Désiré: Fix ingroup/addtogroup syntax 2012-05-17 05:58:49 -07:00
catch e0ba373d6e Issue #1500238 by alexpott, sun, chx: Encode/decode data via PHP serialize()/unserialize() for DatabaseStorage (storage controller specific data formats). 2012-05-16 12:02:24 +09:00
Dries b551b666de - Patch #1506630 by Alan Evans, David_Rothstein: Fixed Namedspaced code throws and catches 'Exceptions' which don't exist (causing the DB settings form validation to break on install). 2012-05-14 21:31:16 -04:00
Larry Garfield 0993e73bf9 More logically organize methods in the exception controller class. 2012-05-13 12:42:03 -05:00
Larry Garfield eb8fe490da Merge remote-tracking branch 'upstream/8.x' into kernel 2012-05-13 12:21:10 -05:00
Larry Garfield 28c6dffaaa Reset the static menu systme variables before a 404 subrequest, too. 2012-05-13 12:20:28 -05:00
Larry Garfield 3edf21c28f Reset the static menu system variables before a subrequest. 2012-05-12 00:47:05 -05:00
Larry Garfield 71e0447b50 Only call our legacy init routines for a master request, to avoid it getting called twice. 2012-05-11 22:32:00 -05:00
catch 2a3251a829 Issue #1565972 by c960657: Clean-up of mapConditionOperator(). 2012-05-12 12:15:33 +09:00
catch 44c07e9b26 Issue #1545068 by Berdir: Convert Exception in update.inc to PSR-0. 2012-05-12 12:10:23 +09:00
Larry Garfield d44e497bb0 Port Drupal's default HTTP headers to a response listener. 2012-05-11 21:45:05 -05:00
Niklas Fiekas 171fdb4410 Detailed cleanup of documentation blocks for spacing, language, placement, etc. 2012-05-11 20:54:55 -05:00
catch bb691f62d7 Issue #1567812 by sun: Remove 'Verified' from configuration class names. 2012-05-10 23:54:04 +09:00
Larry Garfield 270dcd2e88 Merge remote-tracking branch 'upstream/8.x' into kernel 2012-05-10 00:14:31 -05:00
effulgentsia 87979eaad8 Improve system path handling and use the system path to determine if we need to show a custom theme. 2012-05-09 21:11:33 -05:00
Niklas Fiekas 7bf2a1ae4c Add FinishResponseSubscriber to set extra headers.
Handle finished responses to set the X-UA-Compatible and the Content-language
headers.

This fixes CommonDrupalHTTPRequestTestCase.
2012-05-09 20:53:48 -05:00
Pierre Rineau 60ebceebf9 Fixes #1567438 - Wrong transaction type was being catched in a MySQL transaction specific loop when releasing transactions 2012-05-09 22:26:52 +02:00
Bram Goffings 037ac94025 trim trailing slashes in pathListener 2012-05-09 17:52:53 +02:00
Larry Garfield cc36b421d0 Remove redundant front page handling code. 2012-05-09 01:21:37 -05:00
Larry Garfield bf41cd2e15 Rename PathListenerAbstract to PathListenerBase to conform to what is likely to soon be the coding standard. 2012-05-09 01:21:37 -05:00
Larry Garfield e70d9ac810 Improve documentation. 2012-05-09 01:21:37 -05:00
effulgentsia 6275cc5949 #1536844: Moved language, path, theme, and module initialization from bootstrap to request listeners. 2012-05-09 01:21:37 -05:00
Pierre Rineau 90d204574e Switched catch statement from DatabaseException to DatabaseExceptionWrapper for better granularity 2012-05-08 22:21:31 +02:00
Pierre Rineau 1bcdb02891 Fixes #1567444 - Wrong exception (PDOException) was in a catch statement instead of DatabaseException - thanks for aspilicious's help 2012-05-08 20:31:28 +02:00
catch d390816023 Issue #1444620 by dawehner, sun, heyrocker: Remove file signing from configuration system. 2012-05-08 14:04:54 +09:00
Larry Garfield 12e53f92a3 Merge remote-tracking branch 'upstream/8.x' into kernel
Resolve conflicts in cron improvements.

Conflicts:
	core/INSTALL.txt
	core/includes/bootstrap.inc
	core/modules/simpletest/drupal_web_test_case.php
	core/modules/system/system.install
	core/modules/system/system.module
	core/modules/system/system.test
	core/scripts/cron-curl.sh
	core/scripts/cron-lynx.sh
2012-05-06 23:03:57 -05:00
Larry Garfield 71cf6406ad Automatically urldecode() paths to allow for useful data in path fragments. 2012-05-06 22:48:08 -05:00
Larry Garfield 2ceb9c02a6 Refactor path manipulation code to make it easier to extend. 2012-05-06 22:16:21 -05:00
Larry Garfield a390ba77a9 Clean up the UrlMatcher now that we don't need to do as much hackery with the path. It's handled elsewhere. 2012-05-04 01:09:46 -05:00
Larry Garfield ccae6645b6 Documentation improvements. 2012-05-04 00:27:17 -05:00
Larry Garfield da3a3dec5e Specify additional classes used in this file. 2012-05-03 23:44:21 -05:00
Dries b332a85b3c - Patch #1552744 by Rob Loach, effulgentsia, sun: Fixed Bootstrap for the Dependency Injection Container and make sure SimpleTest abides to it. 2012-05-03 11:13:18 -04:00
Larry Garfield a8a7cabbf8 Pass in the system path to the UrlMatcher rather than pathInfo(). 2012-04-30 23:39:26 -05:00
Larry Garfield fccf65babc Move frontpage handling to the PathSubscriber. 2012-04-30 23:39:26 -05:00
Larry Garfield 47e0233492 Switch to a new UrlMatcher and RouterListener so that we can use a full Request object for routing purposes, and look to the attributes for our main routing information. 2012-04-30 23:39:25 -05:00
Larry Garfield fb620e79b2 Catch DatabaseExceptions in MySQL's sequence emulation rather than PDOException, since we're now always wrapping the latter. 2012-04-30 23:38:39 -05:00
Larry Garfield 57fab3b0c2 Remove last vestiges of ['q'] from the kernel branch. 2012-04-30 22:11:50 -05:00
Larry Garfield 29ec5c929b Merge remote-tracking branch 'upstream/8.x' into kernel
Conflicts:
	core/includes/common.inc
	core/includes/menu.inc
	core/modules/image/image.test
	core/modules/system/tests/file.test
2012-04-30 21:29:48 -05:00
Larry Garfield 40817bb3cd Adjust error handling to account for the new DatabaseWrapperException. 2012-04-28 22:12:09 -05:00
Larry Garfield 7ac8d9ac6e Add a database wrapping exception for PDOExceptions to carry additional debug information. 2012-04-28 22:12:09 -05:00
Larry Garfield acf9151af7 Port Drupal's legacy exception handling into the ExceptionController. 2012-04-28 22:12:09 -05:00
Larry Garfield 88be740cdb Merge remote-tracking branch 'upstream/8.x' into kernel
Conflicts:
	core/modules/node/node.module
	core/modules/overlay/overlay.module
2012-04-27 21:59:33 -05:00
Jennifer Hodgdon 9f59cdf937 Issue #1548038 by Rob Loach: Fix typo in CacheArray.php documentation 2012-04-27 09:42:28 -07:00
catch b7cae658e0 Issue #1536262 by sun: Fixed entering a site name when installing Drupal 8 has no effect until caches are cleared. 2012-04-24 11:15:56 +09:00
Larry Garfield 9cf81913e9 Merge remote-tracking branch 'upstream/8.x' into kernel 2012-04-22 18:50:18 -05:00
Jennifer Hodgdon 121f7ee093 Issue #1540072 by xjm: American spelling for behavior 2012-04-20 12:51:35 -07:00
Larry Garfield c96c3fca10 Merge remote-tracking branch 'upstream/8.x' into kernel 2012-04-20 01:07:37 -05:00
Katherine Bailey 223049a02c Use the getFormat() method on the request object for content type negotiation, and fallback to html in the case of no Accept header. 2012-04-19 22:36:39 -05:00
Dries 3a9a31251d Merge branch '8.x' of git.drupal.org:project/drupal into 8.x 2012-04-19 07:32:00 -04:00
catch 3aa3e5d1d6 Issue #636454 by tim.plunkett: Follow up for Cache tag support. 2012-04-19 12:28:14 +09:00
Dries 0ca408e1d3 - Patch #1497230 by Rob Loach, pdrake, effulgentsia: Use Dependency Injection to handle object definitions. 2012-04-18 14:31:33 -04:00
Larry Garfield 1a7cf99e5d Remove unnecessary use statement. 2012-04-16 19:42:41 -05:00
Larry Garfield 1c6379e1db Merge remote-tracking branch 'upstream/8.x' into kernel 2012-04-15 18:44:08 -05:00
Larry Garfield fd18c1697a Execute termination listeners, including the subscriber formerly known as drupal_page_footer() and now represented by this class. 2012-04-15 18:23:15 -05:00
Larry Garfield a88fc53b0d Turn the cache subscriber into a termination subscriber, not a response subscriber. Still needs work. 2012-04-15 18:03:25 -05:00
Katherine Bailey b99d11fac6 Adding a ResponseSubscriber for taking care of end of request tasks, including caching of pages and system paths 2012-04-15 18:03:25 -05:00
catch fe51314cb8 Issue #1237252 by bfroehle, drewish, Berdir: Fixed DB Case Sensitivity: Allow BINARY attribute in MySQL. 2012-04-13 17:21:35 +09:00
catch 2a30669ab3 Issue #1513970 by Berdir: Convert SearchQuery to PSR-0. 2012-04-13 17:09:54 +09:00
Larry Garfield a94bb607ed Merge remote-tracking branch 'upstream/8.x' into kernel 2012-04-13 00:19:25 -05:00
Larry Garfield 9d4d6b05e5 refs #1529868 by cosmiccreams: Minor doc fixes. 2012-04-12 23:05:27 -05:00
Jody Hamilton 6ee384e1f2 include access denied watchdog call in on403Html 2012-04-12 23:00:15 -05:00
catch 969256bd8b Issue #636454 by catch, carlos8f, msonnabaum, beejeebus, Berdir, moshe weitzman, pillarsdotnet: Added Cache tag support. 2012-04-13 10:49:34 +09:00
Dries 62a39c9a18 - Patch #1503184 by aspilicious, Rob Loach, cweagans: convert Graph.inc to PSR-0. 2012-04-09 14:02:59 -04:00
Nathaniel 7388171b2b Issue #1477446 by pounard, amateescu: Move lock backend to PSR-0 code. 2012-04-09 12:04:51 +09:00
Larry Garfield c45a3d572f Merge remote-tracking branch 'upstream/8.x' into kernel 2012-04-06 16:25:48 -05:00
Larry Garfield 41de04e38f Merge branch 'kernel-ajax' into kernel 2012-04-06 16:24:27 -05:00
Larry Garfield 85e6a0cd3a Remove unnecessary variable. 2012-04-06 16:10:09 -05:00
Larry Garfield 169646ae39 Rename variable to be more accurate. 2012-04-06 16:08:23 -05:00
Larry Garfield df49a0704e Switch to using the new system path rathe than ['q']. 2012-04-06 16:06:30 -05:00
Niklas Fiekas ef0a9e627d Add a MaintenanceModeSubscriber. 2012-04-04 17:32:06 +02:00
catch 837430ffee Issue #1323124 by amateescu, aspilicious, Berdir: Convert file transfer system to PSR-0. Commit ALL THE files. 2012-04-03 15:12:03 +09:00
catch e89ce2820d Revert "Issue #1323124 by amateescu, aspilicious, Berdir: Convert file transfer system to PSR-0."
This reverts commit 5abec889ea.
2012-04-03 15:10:00 +09:00
catch 5abec889ea Issue #1323124 by amateescu, aspilicious, Berdir: Convert file transfer system to PSR-0. 2012-04-03 14:37:09 +09:00
Niklas Fiekas 12038f71b2 Extend the note about serialized page arguments. 2012-04-02 18:45:13 +02:00
Peter Drake 9a3fd256ea Fixed file upload handling. 2012-04-02 06:32:41 -07:00
Peter Drake a63f8a1c01 Merge branch 'kernel' into kernel-ajax 2012-04-02 06:32:33 -07:00
Larry Garfield b124f325b7 Simplify the UrlMatcher to just deal with Drupal menu items directly. We will likely bypass it and write a wholely new one later for the new routing system, and this better supports existing esoteric routes. 2012-04-01 14:51:26 -05:00
Larry Garfield e6e4bc1a80 Merge branch 'kernel' into kernel-ajax 2012-03-31 19:41:42 -05:00
Larry Garfield 7b12ed6f8b Switch to the new JsonResponse object in the View subscriber, too. 2012-03-31 19:36:54 -05:00
Larry Garfield c522dad503 Merge branch 'kernel' into kernel-ajax 2012-03-31 19:34:19 -05:00
Larry Garfield da00dcc3e6 Switch to the new JsonResponse object from Symfony. 2012-03-31 18:44:36 -05:00
Larry Garfield edcc5bd57e Add and improve documentation. 2012-03-31 18:41:36 -05:00
Larry Garfield 020d18696e Merge remote-tracking branch 'upstream/8.x' into kernel 2012-03-31 18:19:48 -05:00
Peter Drake 08c2cddea2 Add onAjax and onIframeUpload handlers to ViewSubscriber. Add x-requested-with header to AJAX tests. 2012-03-28 22:16:31 -04:00
catch 4b3298eb97 Issue #1171866 by sun: Fixed Enforced fetching of fields/columns in lowercase breaks third-party integration. 2012-03-28 13:34:43 +09:00
catch 7385e0536e Issue #1497020 by Damien Tournoud: Fixed SQLite broken after PSR-0. 2012-03-27 16:00:04 +09:00
webchick 57a156ef96 Issue #692366 by underq, bradweikel, willmoy, kid_icarus | foripepe: Fixed Stop forcing language/mirror for PHP manual links. 2012-03-24 00:14:35 -06:00
Dries c16a978c2a - Patch #1497088 by acrollet: Fixed Empty configuration values should return an empty string instead of an empty array. 2012-03-23 16:21:49 -06:00
Andrew Berry 148815527a Fix setting the destination for custom 403 pages. 2012-03-23 16:02:39 -06:00
Andrew Berry c25fb80dcc Fix missing this. 2012-03-23 15:47:25 -06:00
Andrew Berry 1c96f11407 Remove old kernel instantiation. 2012-03-23 15:46:50 -06:00
Andrew Berry c030577c5f Merge branch 'add-kernel-param' into 403-404-testbot
Conflicts:
	core/lib/Drupal/Core/ExceptionController.php
2012-03-23 15:45:34 -06:00
Andrew Berry 44fd52cecb Add a reference to the kernel in ExceptionController. 2012-03-23 15:44:36 -06:00
Dries d2f1b2560f - Patch #1484690 by Pol, jhedstrom, beejeebus: implement overrides in the configuration system. 2012-03-23 15:35:53 -06:00
Andrew Berry 9462303bb3 Fix wrong variable for the request. 2012-03-23 15:24:22 -06:00
Andrew Berry 63df91d237 Pass the destination parameter to 403 forms. 2012-03-23 15:09:13 -06:00
Andrew Berry d25d54e31d Add support for default and custom 403 pages. 2012-03-23 15:07:37 -06:00
Andrew Berry 675744982b Fix page arguments not being unserialized. 2012-03-23 15:05:09 -06:00
Andrew Berry 12810fe34c Fix unserializing page arguments. 2012-03-23 15:03:37 -06:00
Andrew Berry 3a2ab9d5f9 Fix sending the wrong URL for custom 404 pages. 2012-03-23 15:03:36 -06:00
Andrew Berry 08d5e2850d Documentation and TODO updates. 2012-03-23 14:56:51 -06:00
Larry Garfield 9152debf7f Convert View listeners to a single view subscriber. 2012-03-23 15:34:46 -05:00
Larry Garfield d25fcbae70 Convert exception handling from multiple listeners to a single subscriber class for all response types. 2012-03-23 15:20:37 -05:00
Larry Garfield 849e5bf3b9 Better edge case handling of missing variables. 2012-03-23 14:20:55 -05:00
Larry Garfield ed25afbdbf Move all code to the kernel constructor, not handle method. 2012-03-23 12:58:05 -05:00
Larry Garfield 0876971e2c Refactor DrupalKernel to extend HttpKernel. 2012-03-23 12:49:37 -05:00
Larry Garfield d64072f2b2 Merge remote-tracking branch 'upstream/8.x' into kernel 2012-03-23 12:11:42 -05:00
catch 1198964079 Issue #1015946 by pillarsdotnet, catch, bfroehle, Jej, jose.guevara, Damien Tournoud: Fixed Eliminate $user->cache and {session}.cache in favor of $_SESSION['cache_expiration()'][]. 2012-03-23 16:52:50 +09:00
catch 2178d43211 Issue #1491526 by c960657: Fixed Cannot install Drupal on PostgreSQL. 2012-03-23 16:51:01 +09:00
Larry Garfield ad5fd1a16f Merge branch 'kernel' into kernel-real-responses 2012-03-16 20:46:44 -05:00
Larry Garfield cdb2494a36 Remove broken BC shiv. 2012-03-16 20:40:51 -05:00
Larry Garfield a4a7217164 Create a new Request object, don't try to clone the previous one. 2012-03-16 20:11:33 -05:00
Larry Garfield 2e9f36b4f9 Further work on HTML 404 handling. Still untested. 2012-03-16 19:25:25 -05:00
Larry Garfield a2b9b60d76 Send the correct HTTP response for unsupported mimetype. 2012-03-16 18:59:27 -05:00
Larry Garfield d38d298699 Merge remote branch 'upstream/8.x' into kernel 2012-03-16 18:47:52 -05:00
Larry Garfield 1afec3a95e Add */* as a fallback for HTML for the test bot. 2012-03-16 18:45:58 -05:00
Larry Garfield f078c8c38d Copy the old 404 code into the new location. Still need to futz with it. 2012-03-15 23:55:14 -05:00
Dries e2b2a3e0dd - Patch #1473600 by amateescu, Berdir: Convert archiver.inc to PSR-0. 2012-03-15 12:38:32 -04:00
Larry Garfield da5fba747f Push HTML listeners even later. 2012-03-14 23:45:24 -05:00
Larry Garfield 6673e6ca0b Merge remote-tracking branch 'upstream/8.x' into kernel 2012-03-14 23:42:15 -05:00
Larry Garfield b32d677292 Make HTML the default output format. That is, make HTML the last format to catch output events and apply it to the catch-all accept header. 2012-03-14 23:37:15 -05:00
catch 1de01b0025 Issue #1471364 by amateescu: Move mail system classes from system.mail.inc to PSR-0 classes in Drupal\Core. 2012-03-14 17:54:05 +09:00
Larry Garfield 7c2cb51ee2 Merge branch 'kernel-damz' into kernel 2012-03-13 02:37:25 -05:00
Larry Garfield d52c2d9587 Add a JSON response subscriber. This is largely the same as the HTML one, but forces the appropriate mime type for responses. 2012-03-13 02:37:11 -05:00
Larry Garfield dd2bfb73c3 Merge remote-tracking branch 'upstream/8.x' into kernel 2012-03-12 23:45:46 -05:00
Larry Garfield 1f40e076e1 Merge remote-tracking branch 'upstream/8.x' into kernel-damz 2012-03-12 23:45:34 -05:00
Damien Tournoud afbe808773 Properly use menu_get_item(). 2012-03-12 18:03:12 +01:00
Larry Garfield f9686b7af9 Add BC shiv to keep old-style Dirty URLs working. This should be a temporary fix only, and be removed later. 2012-03-11 23:58:04 -05:00
catch 9e43704ae6 Issue #1468244 by amateescu, aspilicious: Convert DrupalQueue system to PSR-0. 2012-03-12 12:07:39 +09:00
Larry Garfield dab4c21f3c Merge remote-tracking branch 'upstream/8.x' into kernel 2012-03-11 03:16:01 -05:00
webchick 368cf30de0 Issue #1471376 by amateescu: Convert updater.inc to PSR-0. 2012-03-10 16:23:05 -08:00
Larry Garfield 7e25089756 Merge remote-tracking branch 'upstream/8.x' into kernel 2012-03-10 16:46:47 -06:00
webchick b27e9069ed Issue #1475020 by amateescu: Convert stream_wrappers().inc to PSR-0. 2012-03-10 12:17:14 -08:00
webchick 65f25dc9fe Revert "Committing missing files to #1475020. I think. I hope."
This reverts commit 2d6fdda1f0.
2012-03-10 12:16:01 -08:00
webchick 2d6fdda1f0 Committing missing files to #1475020. I think. I hope. 2012-03-10 11:53:53 -08:00
Larry Garfield 693641b2c9 Documentation correction. 2012-03-10 11:14:15 -06:00
Larry Garfield 63ec801e03 Merge remote-tracking branch 'upstream/8.x' into kernel 2012-03-10 11:08:52 -06:00
catch f48225b06c Issue #1323120 by webchick, David_Rothstein, kotnik, amateescu: Documentation follow-ups for convert cache system to PSR-0. 2012-03-09 13:32:23 +09:00
catch 982087f210 Issue #1471368 by amateescu: Convert uuid.inc to PSR-0. 2012-03-09 13:28:33 +09:00
catch 79f43572fc Issue #1469826 by andremolnar: Convert DrupalCacheArray and SchemaCache to PSR-0. 2012-03-09 00:20:35 +09:00
webchick f9c539aa21 Issue #1414412 by pillarsdotnet, MrHaroldA, droplet: Fixed Skip #conjunction key in __clone() method of core/includes/database/query.inc. 2012-03-07 10:34:16 -08:00
Larry Garfield c5ce534988 Add a new kernel subscriber to wrap old-style controllers in a closure to avoid dynamic argument issues. This is a BC shim only. 2012-03-06 01:47:43 -06:00
Larry Garfield ef737088b4 Correct bug that throws notices when no router item found. 2012-03-06 01:47:43 -06:00
Larry Garfield b68927a276 Merge remote-tracking branch 'upstream/8.x' into kernel 2012-03-05 21:41:14 -06:00
Larry Garfield a4e0f0ec17 Rename DrupalApp back to DrupalKernel, since it implements HttpKernelInterface. 2012-03-05 21:27:20 -06:00
Larry Garfield d9b452b92e Merge branch '8.x' into kernel 2012-03-01 23:32:55 -06:00
Larry Garfield 60017f4579 Merge branch 'eclipse-kernel' into kernel 2012-03-01 23:30:36 -06:00
Kris 210a9c19f8 initial commit of working dynamic menu items 2012-03-01 16:39:50 -06:00
Greg Dunlap 1bc549de8f Merge remote-tracking branch 'origin/8.x' into 8.x-file-config 2012-02-29 19:47:35 -08:00
Nathaniel bdb71c6fa7 Merge remote branch 'crell/dbtngtng' into 8.x 2012-03-01 12:22:48 +09:00
Larry Garfield 2d52eeeee2 Move DrupalApp back to being a kernel implementation, since, really, that's what it is. 2012-02-28 20:43:33 -06:00
Larry Garfield 2dec350acd Add a listener to handle path resolution. For now we hack ['q'] still so that legacy code still works, but that will go away soon. 2012-02-26 15:24:46 -06:00
Larry Garfield aa62145650 More useful generic exception message. 2012-02-26 13:41:54 -06:00
Larry Garfield 1c91c1fe0c Add an access listener that should throw a 403 exception if the menu router's access check failed. This is totally not the right way to do this long term, but it works for our current codebase. 2012-02-24 00:20:58 -06:00
Larry Garfield 3a79e7535a Proper type hint. 2012-02-23 23:57:18 -06:00
Larry Garfield 251d38bd84 Lots of documentation and cleanup. 2012-02-23 23:00:05 -06:00
Larry Garfield de96603ccb Add an HTML listener for 403 errors. 2012-02-23 22:48:31 -06:00
Larry Garfield 298240393a Convert the matcher into a RouterListener, which in turn handles the error handling to return the right kind of exception at the right time on a 404. 2012-02-23 22:33:05 -06:00
Larry Garfield 16dbf2ec4b Refactor DrupalApp into a series of building methods rather than one long method. 2012-02-23 01:06:03 -06:00
Larry Garfield fd02c84604 Move the HTML request type handling to a subscriber class so that it's nicely encapsulated. 2012-02-23 00:58:41 -06:00
Larry Garfield 501f6d5af6 Clean up debug code. 2012-02-23 00:34:08 -06:00
Larry Garfield fdbc8a2404 Convert DrupalKernel into simply a DrupalApp class, since all of the kernel-y stuff is happening in HttpKernel anyway. 2012-02-23 00:33:14 -06:00
Larry Garfield 87e5aede35 Convert all exception handling to be part of the event dispatcher, for consistency. 2012-02-23 00:28:54 -06:00
Greg Dunlap a9cabde4e3 Cleaning up some todos 2012-02-22 21:28:37 -08:00
Larry Garfield f9fe640f78 Move the new routing logic into a DrupalKernel object. 2012-02-22 22:53:15 -06:00
Greg Dunlap 13db511a47 Stramlined read code slightly 2012-02-22 12:02:03 -08:00
Greg Dunlap e666688a1f Exceptions now successfully being caught when db is missing 2012-02-22 12:01:25 -08:00
Greg Dunlap cc3d5edc53 Removed throw_exception because apparently that's not the problem after all 2012-02-22 10:55:30 -08:00
Greg Dunlap 612c29cff6 Added an exception handler to config->get() which handles situations where the db is not in place, allowing us to remove a call to db_table_exists() which should improve cached performance a bit 2012-02-22 01:07:21 -08:00
Larry Garfield 5ee04f81cb Handle page callback files that need to be lazy-loaded. 2012-02-21 08:44:56 -06:00
Larry Garfield 3b8be7dfa9 Fix typo. 2012-02-21 08:44:36 -06:00
Larry Garfield 56654ae8db Fix front page handling. 2012-02-21 08:44:22 -06:00
Greg Dunlap b537f79f47 Docblock for clear() 2012-02-17 14:17:29 -08:00
Greg Dunlap eb6ea697b8 Renamed unset back to clear because unset is a reserved word which is the whole reason I didn't name it unset in the first place 2012-02-17 14:15:16 -08:00
Greg Dunlap c256f64104 Renamed clear() to unset() 2012-02-17 14:09:59 -08:00
Greg Dunlap aa0e17824b Added docblock for castValue 2012-02-17 14:08:21 -08:00
sun 208af9fec5 Chainable config()->set(). 2012-02-16 14:28:51 -08:00
Greg Dunlap 112afc273a Removing extra blank lines 2012-02-16 13:17:07 -08:00
sun 4f0f3c876f Fixed missing type casting for configuration values. 2012-02-14 12:25:52 -08:00
sun 40cc21c89d Fixed Image module tests. Added many critical todos:
- Config values are not casted to strings (despite promised).
- Config keys are not casted to strings (although promised, too).
- XML can be invalid and not parse-able for many reasons.
- Config keys are not validated/sanitized.
- config()->clear() should really be ->unset().
- Configuration must not be additionally cached by a module in any way (static cache / database cache).
- Some modules invoke drupal_alter() on configuration (e.g., image styles).
- Need a way to list config object names/suffixes _after_ a specified prefix.
- Need a way to determine whether a config object exists.
- Some modules might have a valid use-case for retrieving/listing config objects using a wildcard within the name (instead of only searching by prefix).
- The key of a retrieved value is unknown; since you only get the value.  Configuration values (or sub-values) may be passed forward to another function/callback, and thus, that function no longer knows about the key of the value. (unless the key is contained in the value, which is a very very wonky duplication)
- Config keys must not contain periods (within a specific key).
2012-02-14 12:25:39 -08:00
sun 64eb1643d0 Fixed coding style. 2012-02-14 12:19:43 -08:00
sun 3e65c6d1a1 Added @todo for $config->name property. 2012-02-14 12:16:43 -08:00
sun 598cb86d2d Added DrupalConfigStorageInterface::writeToFile().
write() called into copyToFile() previously, which needlessly re-loaded the configuration data from the active storage, whereas the data is already available.
2012-02-14 12:13:10 -08:00
sun b068ec4031 Instantiate SignedFileStorage object only once per config object. 2012-02-14 12:10:10 -08:00
James Gilliland cf096e698a Stash the Drupal menu item
This will bubble down to the request and since that will be passed around, make
a lot of integration with Symfony and transitioning easier.
2012-02-13 11:05:42 -05:00
James Gilliland 3ef99f9000 Convert to our own UrlMatcher
This is a transitional implementation but by using the UrlMatcherInterface
we can embed our matching logic directly into Symfony's routing logic.
2012-02-13 10:00:50 -05:00
Greg Dunlap 00e4f78537 Expanded the comment on ->get() to be more explicit about string conversions 2012-02-13 14:15:40 -05:00
Greg Dunlap 0810f57d8a Merge branch '8.x-file-config' of git.drupal.org:sandbox/heyrocker/1145636 into 8.x-file-config 2012-02-13 13:56:57 -05:00
Greg Dunlap 9485cf0ce8 Adding ability to return NULL if a value is not found 2012-02-13 13:02:02 -05:00
sun f71138695f Fixed configuration file directory not setup for tests. 2012-02-13 18:53:07 +01:00
justinrandell 9689b0be06 Fully qualify path to PHP's Exception in our namespaced code. 2012-02-11 23:23:54 -05:00
Greg Dunlap a8df28f40d Made config->delete() also blank out the internal data array to prevent people retrieving the data after deletion 2012-02-13 10:30:12 -05:00
Greg Dunlap 5674c60a31 Removed getData() function since this is now replicated in get() 2012-02-13 09:42:41 -05:00
Greg Dunlap c0d37effeb Removed todo that no longer applies 2012-02-12 14:00:59 -05:00
Greg Dunlap 79c10d633d Converting config system to PSR-0 2012-02-12 11:17:29 -05:00
Larry Garfield b9131de629 Clean up exception naming with a new interface. 2012-02-02 23:17:31 -06:00
Greg Dunlap a7c6328d17 Merge remote-tracking branch 'core/8.x' into 8.x-file-config 2012-02-01 14:02:58 +01:00
catch 037faa8fbf Issue #1400748 by Crell, jbrown, plach: Proposal for unified namespace organization. 2012-02-01 12:23:30 +09:00
Larry Garfield 49839784e7 Add file docblocks to new DB files. 2012-01-28 18:27:11 -06:00
Larry Garfield 5a5c830761 Rename transaction use statement. 2012-01-28 17:54:14 -06:00
Larry Garfield e9453d8b04 Merge branch '1400748-namespaces' into dbtngtng 2012-01-28 17:51:18 -06:00
Larry Garfield 24390d5857 Add empty stub files for Postgres. 2012-01-28 17:43:54 -06:00
Larry Garfield 03bd99a28b Update documentation blocks for fully qualified class names. 2012-01-28 17:40:14 -06:00
Larry Garfield a6b6fa5b91 Fix logic in Logger backtrace scanning now that the code is not in the includes directory anymore. 2012-01-28 16:44:35 -06:00
Larry Garfield a731ac1df9 Merge branch '1400748-namespaces' into dbtngtng 2012-01-26 23:48:06 -06:00
Larry Garfield 808c88bd82 Add new readme file for the lib directory itself that specifies PSR-0. 2012-01-25 09:01:39 -06:00
Larry Garfield fc73713158 Minor language tweaks. 2012-01-25 09:01:12 -06:00
Larry Garfield f4a58c3f3a Move Postgres code to PSR-0. 2012-01-23 21:16:26 -06:00
Larry Garfield 92286713d5 Move database files to the new lib directory and update code accordingly. 2012-01-22 23:56:07 -06:00
Larry Garfield 8b8c2a9463 refs #1400748 by Crell: Update docblocks and the installer for the new namespaces. 2012-01-22 22:25:13 -06:00
Larry Garfield 8b0adb6e1e refs #1400748 by Crell: Add README files to document the purpose of various core directories. 2012-01-22 21:24:00 -06:00
Larry Garfield 7048b2195f refs #1400748 by Crell: Move Cache subsystem to the Core namespace. 2012-01-22 21:05:01 -06:00
Larry Garfield 0cb703be45 refs #1400748 by Crell: Move Drupal and Symfony code to core/lib and core/vendor respectively. 2012-01-22 20:56:35 -06:00