Welcome Guest, Not a member yet? Register   Sign In
.env Property Arrays
#1

(This post was last modified: 10-23-2023, 03:06 AM by donpwinston.)

It would be nice to be able to specify non associative arrays like this:
PHP Code:
contentsecuritypolicy.scriptSrc 'self'

contentsecuritypolicy.scriptSrc 'https://bankruptcynotices.uscourts.gov'

contentsecuritypolicy.scriptSrc 'https://bankruptcynoticestest.uscourts.gov'

contentsecuritypolicy.scriptSrc 'https://stage-bnc4-web7.bsg.na.baesystems.com' 
Which would correspond to:
PHP Code:
public $scriptSrc = [
        'self',
        'https://bankruptcynotices.uscourts.gov',
        'https://bankruptcynoticestest.uscourts.gov',
        'https://stage-bnc4-web7.bsg.na.baesystems.com',
    ]; 

Maybe CI does this already? I haven't actually tried it. If it does then the CI manual should mention it. Maybe contentsecuritypolicy.0 = 'self' and xxxx.1 = 'abcd',  xxxx.2 = 'xyzt' would be necessary.
Simpler is always better
Reply


Messages In This Thread
.env Property Arrays - by donpwinston - 10-23-2023, 03:03 AM
RE: .env Property Arrays - by kenjis - 10-23-2023, 05:11 PM
RE: .env Property Arrays - by donpwinston - 10-28-2023, 03:32 AM
RE: .env Property Arrays - by donpwinston - 10-25-2023, 03:01 AM
RE: .env Property Arrays - by kenjis - 10-29-2023, 07:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB