René's URL Explorer Experiment


Title: Add gotcha docs for things that have been `Configure::consume()`d · Issue #20 · loadsys/CakePHP-ConfigReadShell · GitHub

Open Graph Title: Add gotcha docs for things that have been `Configure::consume()`d · Issue #20 · loadsys/CakePHP-ConfigReadShell

X Title: Add gotcha docs for things that have been `Configure::consume()`d · Issue #20 · loadsys/CakePHP-ConfigReadShell

Description: Cake 3 by default strips a lot of Configure's values out via ::consume(). This is done in config/boostrap.php for: Cache ConnectionManager (Datasources configs) Email (EmailTransport & Email configs) Log Security.salt Using Configure::co...

Open Graph Description: Cake 3 by default strips a lot of Configure's values out via ::consume(). This is done in config/boostrap.php for: Cache ConnectionManager (Datasources configs) Email (EmailTransport & Email config...

X Description: Cake 3 by default strips a lot of Configure's values out via ::consume(). This is done in config/boostrap.php for: Cache ConnectionManager (Datasources configs) Email (EmailTransport & Emai...

Opengraph URL: https://github.com/loadsys/CakePHP-ConfigReadShell/issues/20

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add gotcha docs for things that have been `Configure::consume()`d","articleBody":"Cake 3 by default strips a lot of Configure's values out via `::consume()`. This is done in `config/boostrap.php` for:\n- Cache\n- ConnectionManager (Datasources configs)\n- Email (EmailTransport \u0026 Email configs)\n- Log\n- Security.salt\n\nUsing `Configure::consume()` is meant to keep the values left in `Configure` specific to the given app (I guess), but it greatly complicates the process of obtaining environment-specific Configure values for \"anything\" in the app since those configs need to be fetch by calling the appropriate singleton class instead (example: `ConnectionManager::config('default)`).\n\nThe ConfigReadShell's documentation needs to spell out that if you're trying to get a \"consumed\" value, it won't work unless you edit your bootstrap.php to use `Configure::read()` instead of `Configure::consume()`.\n\nAnother option is to invoke the Cake ConsoleShell:\n\n``` shell\n$ echo 'use Cake\\Datasource\\ConnectionManager; ConnectionManager::config(\"default\");'\n   | bin/cake Console\n\nWelcome to CakePHP v3.0.7 Console\n---------------------------------------------------------------\nApp : src\nPath: /var/www/src/\n---------------------------------------------------------------\nYou can exit with `CTRL-C` or `exit`\n\nPsy Shell v0.4.4 (PHP 5.6.10-1+deb.sury.org~precise+1 — cli) by Justin Hileman\n=\u003e [\n       \"className\"        =\u003e \"Cake\\\\Database\\\\Connection\",\n       \"driver\"           =\u003e \"Cake\\\\Database\\\\Driver\\\\Mysql\",\n       \"persistent\"       =\u003e false,\n       \"host\"             =\u003e \"localhost\",\n       \"username\"         =\u003e \"vagrant\",\n       \"password\"         =\u003e \"vagrant\",\n       \"database\"         =\u003e \"vagrant\",\n       \"encoding\"         =\u003e \"utf8\",\n       \"timezone\"         =\u003e \"UTC\",\n       \"cacheMetadata\"    =\u003e true,\n       \"quoteIdentifiers\" =\u003e false,\n       \"name\"             =\u003e \"default\"\n   ]\n\nExit:  Ctrl+D\n\n```\n\nObviously there's another problem with this, since the ConsoleShell spits out a bunch of other extraneous garbage. This could be mitigated with a `--quiet` option to suppress that stuff, but that would involve customizing your `ConsoleShell` instead of your bootstrap.\n","author":{"url":"https://github.com/beporter","@type":"Person","name":"beporter"},"datePublished":"2015-06-28T16:50:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/20/CakePHP-ConfigReadShell/issues/20"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0185624f-7fb2-53a2-b92c-1f662f9639f5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB4B4:3F705B:669E922:8D50FD3:6A5E8519
html-safe-nonce0a56940fd6601ed885591b14fd8a4e4d802515c70ceb7364f8744e0d1669504a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEI0OjNGNzA1Qjo2NjlFOTIyOjhENTBGRDM6NkE1RTg1MTkiLCJ2aXNpdG9yX2lkIjoiNjIxMTI2ODIwNjQ1NDAxNTI1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7a815f4239f563384bf592512aa03f611f626d0860399196fb8c07b28243b245
hovercard-subject-tagissue:91615430
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/loadsys/CakePHP-ConfigReadShell/20/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d3d651f7e4f44f3e56533c3e1676d5558332ea81f8bfa5cf9165cd62c17d4632/loadsys/CakePHP-ConfigReadShell/issues/20
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d3d651f7e4f44f3e56533c3e1676d5558332ea81f8bfa5cf9165cd62c17d4632/loadsys/CakePHP-ConfigReadShell/issues/20
og:image:altCake 3 by default strips a lot of Configure's values out via ::consume(). This is done in config/boostrap.php for: Cache ConnectionManager (Datasources configs) Email (EmailTransport & Email config...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebeporter
hostnamegithub.com
expected-hostnamegithub.com
Nonee0c30ec4bc4cc128be7eee7ef869507723a2ac9916267b7e0d370b3580a5e7ba
turbo-cache-controlno-preview
go-importgithub.com/loadsys/CakePHP-ConfigReadShell git https://github.com/loadsys/CakePHP-ConfigReadShell.git
octolytics-dimension-user_id16822
octolytics-dimension-user_loginloadsys
octolytics-dimension-repository_id28868945
octolytics-dimension-repository_nwoloadsys/CakePHP-ConfigReadShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id28868945
octolytics-dimension-repository_network_root_nwoloadsys/CakePHP-ConfigReadShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release68ef39d284f7f48d37e751bc9bc0a9a4166228d5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/loadsys/CakePHP-ConfigReadShell/issues/20#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Floadsys%2FCakePHP-ConfigReadShell%2Fissues%2F20
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Floadsys%2FCakePHP-ConfigReadShell%2Fissues%2F20
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=loadsys%2FCakePHP-ConfigReadShell
Reloadhttps://github.com/loadsys/CakePHP-ConfigReadShell/issues/20
Reloadhttps://github.com/loadsys/CakePHP-ConfigReadShell/issues/20
Reloadhttps://github.com/loadsys/CakePHP-ConfigReadShell/issues/20
Please reload this pagehttps://github.com/loadsys/CakePHP-ConfigReadShell/issues/20
loadsys https://github.com/loadsys
CakePHP-ConfigReadShellhttps://github.com/loadsys/CakePHP-ConfigReadShell
Notifications https://github.com/login?return_to=%2Floadsys%2FCakePHP-ConfigReadShell
Fork 0 https://github.com/login?return_to=%2Floadsys%2FCakePHP-ConfigReadShell
Star 3 https://github.com/login?return_to=%2Floadsys%2FCakePHP-ConfigReadShell
Code https://github.com/loadsys/CakePHP-ConfigReadShell
Issues 2 https://github.com/loadsys/CakePHP-ConfigReadShell/issues
Pull requests 1 https://github.com/loadsys/CakePHP-ConfigReadShell/pulls
Actions https://github.com/loadsys/CakePHP-ConfigReadShell/actions
Projects https://github.com/loadsys/CakePHP-ConfigReadShell/projects
Wiki https://github.com/loadsys/CakePHP-ConfigReadShell/wiki
Security and quality 0 https://github.com/loadsys/CakePHP-ConfigReadShell/security
Insights https://github.com/loadsys/CakePHP-ConfigReadShell/pulse
Code https://github.com/loadsys/CakePHP-ConfigReadShell
Issues https://github.com/loadsys/CakePHP-ConfigReadShell/issues
Pull requests https://github.com/loadsys/CakePHP-ConfigReadShell/pulls
Actions https://github.com/loadsys/CakePHP-ConfigReadShell/actions
Projects https://github.com/loadsys/CakePHP-ConfigReadShell/projects
Wiki https://github.com/loadsys/CakePHP-ConfigReadShell/wiki
Security and quality https://github.com/loadsys/CakePHP-ConfigReadShell/security
Insights https://github.com/loadsys/CakePHP-ConfigReadShell/pulse
Add gotcha docs for things that have been Configure::consume()dhttps://github.com/loadsys/CakePHP-ConfigReadShell/issues/20#top
bughttps://github.com/loadsys/CakePHP-ConfigReadShell/issues?q=state%3Aopen%20label%3A%22bug%22
questionhttps://github.com/loadsys/CakePHP-ConfigReadShell/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com/beporter
beporterhttps://github.com/beporter
on Jun 28, 2015https://github.com/loadsys/CakePHP-ConfigReadShell/issues/20#issue-91615430
bughttps://github.com/loadsys/CakePHP-ConfigReadShell/issues?q=state%3Aopen%20label%3A%22bug%22
questionhttps://github.com/loadsys/CakePHP-ConfigReadShell/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.