Php 教义2-';供应商\bin\document';不被识别为内部或外部命令

Php 教义2-';供应商\bin\document';不被识别为内部或外部命令,php,doctrine-orm,doctrine,Php,Doctrine Orm,Doctrine,我正试图在我的Windows WAMP服务器C:\WAMP\www\doctor的文件夹中安装条令2。下面是我的教程:- 编写composer.json后:- { "name": "xxxx/doctrine-test", "authors": [ { "name": "omar", "email": "xxxx@gmail.com" } ], "require": {

我正试图在我的Windows WAMP服务器
C:\WAMP\www\doctor
的文件夹中安装条令2。下面是我的教程:-

编写
composer.json
后:-

{
    "name": "xxxx/doctrine-test",
    "authors": [
        {
            "name": "omar",
            "email": "xxxx@gmail.com"
        }
    ],
    "require": {
        "doctrine/orm": "2.4.*",
        "symfony/yaml": "2.*"
    }
}
我运行了
composer安装
,生成了以下目录:-

└───vendor
    ├───bin
    ├───composer
    ├───doctrine
    │   ├───annotations
    │   │   └───lib
    │   │       └───Doctrine
    │   │           └───Common
    │   │               └───Annotations
    │   │                   └───Annotation
    │   ├───cache
    │   │   ├───lib
    │   │   │   └───Doctrine
    │   │   │       └───Common
    │   │   │           └───Cache
    │   │   └───tests
    │   │       ├───Doctrine
    │   │       │   └───Tests
    │   │       │       └───Common
    │   │       │           └───Cache
    │   │       └───travis
    │   ├───collections
    │   │   ├───lib
    │   │   │   └───Doctrine
    │   │   │       └───Common
    │   │   │           └───Collections
    │   │   │               └───Expr
    │   │   └───tests
    │   │       └───Doctrine
    │   │           └───Tests
    │   │               └───Common
    │   │                   └───Collections
    │   ├───common
    │   │   ├───lib
    │   │   │   ├───Doctrine
    │   │   │   │   └───Common
    │   │   │   │       ├───Persistence
    │   │   │   │       │   ├───Event
    │   │   │   │       │   └───Mapping
    │   │   │   │       │       └───Driver
    │   │   │   │       ├───Proxy
    │   │   │   │       │   └───Exception
    │   │   │   │       ├───Reflection
    │   │   │   │       └───Util
    │   │   │   └───vendor
    │   │   │       └───doctrine-build-common
    │   │   └───tests
    │   │       └───Doctrine
    │   │           └───Tests
    │   │               └───Common
    │   │                   ├───ClassLoaderTest
    │   │                   ├───Persistence
    │   │                   │   └───Mapping
    │   │                   │       ├───_custom_ns
    │   │                   │       │   ├───dir
    │   │                   │       │   │   └───sub
    │   │                   │       │   │       └───subsub
    │   │                   │       │   └───dot
    │   │                   │       └───_files
    │   │                   │           └───annotation
    │   │                   ├───Proxy
    │   │                   ├───Reflection
    │   │                   │   └───Dummies
    │   │                   └───Util
    │   ├───dbal
    │   │   ├───bin
    │   │   └───lib
    │   │       ├───Doctrine
    │   │       │   └───DBAL
    │   │       │       ├───Cache
    │   │       │       ├───Connections
    │   │       │       ├───Driver
    │   │       │       │   ├───DrizzlePDOMySql
    │   │       │       │   ├───IBMDB2
    │   │       │       │   ├───Mysqli
    │   │       │       │   ├───OCI8
    │   │       │       │   ├───PDOIbm
    │   │       │       │   ├───PDOMySql
    │   │       │       │   ├───PDOOracle
    │   │       │       │   ├───PDOPgSql
    │   │       │       │   ├───PDOSqlite
    │   │       │       │   ├───PDOSqlsrv
    │   │       │       │   ├───SQLAnywhere
    │   │       │       │   └───SQLSrv
    │   │       │       ├───Event
    │   │       │       │   └───Listeners
    │   │       │       ├───Exception
    │   │       │       ├───Id
    │   │       │       ├───Logging
    │   │       │       ├───Platforms
    │   │       │       │   └───Keywords
    │   │       │       ├───Portability
    │   │       │       ├───Query
    │   │       │       │   └───Expression
    │   │       │       ├───Schema
    │   │       │       │   ├───Synchronizer
    │   │       │       │   └───Visitor
    │   │       │       ├───Sharding
    │   │       │       │   ├───ShardChoser
    │   │       │       │   └───SQLAzure
    │   │       │       │       └───Schema
    │   │       │       ├───Tools
    │   │       │       │   └───Console
    │   │       │       │       ├───Command
    │   │       │       │       └───Helper
    │   │       │       └───Types
    │   │       └───vendor
    │   │           ├───doctrine-build-common
    │   │           ├───doctrine-common
    │   │           └───Symfony
    │   │               └───Component
    │   │                   └───Console
    │   ├───doctrine-bundle
    │   │   ├───Command
    │   │   │   └───Proxy
    │   │   ├───Controller
    │   │   ├───DataCollector
    │   │   ├───DependencyInjection
    │   │   │   └───Compiler
    │   │   ├───Mapping
    │   │   ├───Resources
    │   │   │   ├───config
    │   │   │   │   └───schema
    │   │   │   ├───doc
    │   │   │   └───views
    │   │   │       └───Collector
    │   │   ├───Tests
    │   │   │   ├───Command
    │   │   │   ├───DataCollector
    │   │   │   ├───DependencyInjection
    │   │   │   │   └───Fixtures
    │   │   │   │       ├───Bundles
    │   │   │   │       │   ├───AnnotationsBundle
    │   │   │   │       │   │   └───Entity
    │   │   │   │       │   ├───Vendor
    │   │   │   │       │   │   └───AnnotationsBundle
    │   │   │   │       │   │       └───Entity
    │   │   │   │       │   ├───XmlBundle
    │   │   │   │       │   │   ├───Entity
    │   │   │   │       │   │   └───Resources
    │   │   │   │       │   │       └───config
    │   │   │   │       │   │           └───doctrine
    │   │   │   │       │   └───YamlBundle
    │   │   │   │       │       ├───Entity
    │   │   │   │       │       └───Resources
    │   │   │   │       │           └───config
    │   │   │   │       │               └───doctrine
    │   │   │   │       └───config
    │   │   │   │           ├───xml
    │   │   │   │           └───yml
    │   │   │   ├───Mapping
    │   │   │   └───Twig
    │   │   └───Twig
    │   ├───doctrine-cache-bundle
    │   │   └───Doctrine
    │   │       └───Bundle
    │   │           └───DoctrineCacheBundle
    │   │               ├───Acl
    │   │               │   └───Model
    │   │               ├───Command
    │   │               ├───DependencyInjection
    │   │               │   └───Definition
    │   │               ├───Resources
    │   │               │   └───config
    │   │               │       └───schema
    │   │               └───Tests
    │   │                   ├───Acl
    │   │                   │   └───Model
    │   │                   ├───DependencyInjection
    │   │                   │   └───Fixtures
    │   │                   │       ├───Bundles
    │   │                   │       │   ├───XmlBundle
    │   │                   │       │   └───YamlBundle
    │   │                   │       ├───Cache
    │   │                   │       ├───config
    │   │                   │       │   ├───xml
    │   │                   │       │   └───yml
    │   │                   │       └───Definition
    │   │                   ├───Functional
    │   │                   │   ├───Command
    │   │                   │   └───Fixtures
    │   │                   │       └───config
    │   │                   └───travis
    │   ├───inflector
    │   │   ├───lib
    │   │   │   └───Doctrine
    │   │   │       └───Common
    │   │   │           └───Inflector
    │   │   └───tests
    │   │       └───Doctrine
    │   │           └───Tests
    │   │               └───Common
    │   │                   └───Inflector
    │   └───lexer
    │       └───lib
    │           └───Doctrine
    │               └───Common
    │                   └───Lexer
    ├───jdorn
    │   └───sql-formatter
    │       ├───examples
    │       ├───lib
    │       └───tests
    ├───psr
    │   └───log
    │       └───Psr
    │           └───Log
    │               └───Test
    └───symfony
        ├───asset
        │   ├───Context
        │   ├───Exception
        │   ├───Tests
        │   └───VersionStrategy
        ├───config
        │   ├───Definition
        │   │   ├───Builder
        │   │   ├───Dumper
        │   │   └───Exception
        │   ├───Exception
        │   ├───Loader
        │   ├───Resource
        │   ├───Tests
        │   │   ├───Definition
        │   │   │   ├───Builder
        │   │   │   └───Dumper
        │   │   ├───Exception
        │   │   ├───Fixtures
        │   │   │   ├───Again
        │   │   │   ├───Builder
        │   │   │   ├───Configuration
        │   │   │   └───Util
        │   │   ├───Loader
        │   │   ├───Resource
        │   │   └───Util
        │   └───Util
        ├───console
        │   ├───Command
        │   ├───Descriptor
        │   ├───Event
        │   ├───Formatter
        │   ├───Helper
        │   ├───Input
        │   ├───Logger
        │   ├───Output
        │   ├───Question
        │   ├───Resources
        │   │   └───bin
        │   ├───Style
        │   ├───Tester
        │   └───Tests
        │       ├───Command
        │       ├───Descriptor
        │       ├───Fixtures
        │       │   └───Style
        │       │       └───SymfonyStyle
        │       │           ├───command
        │       │           └───output
        │       ├───Formatter
        │       ├───Helper
        │       ├───Input
        │       ├───Logger
        │       ├───Output
        │       ├───Style
        │       └───Tester
        ├───debug
        │   ├───Exception
        │   ├───FatalErrorHandler
        │   ├───Resources
        │   │   └───ext
        │   │       └───tests
        │   └───Tests
        │       ├───Exception
        │       ├───FatalErrorHandler
        │       ├───Fixtures
        │       │   └───psr4
        │       └───Fixtures2
        ├───dependency-injection
        │   ├───Compiler
        │   ├───Dumper
        │   ├───Exception
        │   ├───Extension
        │   ├───LazyProxy
        │   │   ├───Instantiator
        │   │   └───PhpDumper
        │   ├───Loader
        │   │   └───schema
        │   │       └───dic
        │   │           └───services
        │   ├───ParameterBag
        │   └───Tests
        │       ├───Compiler
        │       ├───Dumper
        │       ├───Extension
        │       ├───Fixtures
        │       │   ├───containers
        │       │   ├───graphviz
        │       │   ├───includes
        │       │   │   └───schema
        │       │   ├───ini
        │       │   ├───php
        │       │   ├───xml
        │       │   │   ├───extension1
        │       │   │   ├───extension2
        │       │   │   └───extensions
        │       │   └───yaml
        │       ├───LazyProxy
        │       │   ├───Instantiator
        │       │   └───PhpDumper
        │       ├───Loader
        │       └───ParameterBag
        ├───doctrine-bridge
        │   ├───CacheWarmer
        │   ├───DataCollector
        │   ├───DataFixtures
        │   ├───DependencyInjection
        │   │   ├───CompilerPass
        │   │   └───Security
        │   │       └───UserProvider
        │   ├───ExpressionLanguage
        │   ├───Form
        │   │   ├───ChoiceList
        │   │   ├───DataTransformer
        │   │   ├───EventListener
        │   │   └───Type
        │   ├───HttpFoundation
        │   ├───Logger
        │   ├───Security
        │   │   ├───RememberMe
        │   │   └───User
        │   ├───Test
        │   ├───Tests
        │   │   ├───DataCollector
        │   │   ├───DataFixtures
        │   │   ├───DependencyInjection
        │   │   │   └───CompilerPass
        │   │   ├───ExpressionLanguage
        │   │   ├───Fixtures
        │   │   ├───Form
        │   │   │   ├───ChoiceList
        │   │   │   ├───DataTransformer
        │   │   │   └───Type
        │   │   ├───HttpFoundation
        │   │   ├───Logger
        │   │   ├───Security
        │   │   │   └───User
        │   │   └───Validator
        │   │       └───Constraints
        │   └───Validator
        │       └───Constraints
        ├───event-dispatcher
        │   ├───Debug
        │   ├───DependencyInjection
        │   └───Tests
        │       ├───Debug
        │       └───DependencyInjection
        ├───filesystem
        │   ├───Exception
        │   └───Tests
        ├───framework-bundle
        │   ├───CacheWarmer
        │   ├───Command
        │   ├───Console
        │   │   ├───Descriptor
        │   │   └───Helper
        │   ├───Controller
        │   ├───DataCollector
        │   ├───DependencyInjection
        │   │   └───Compiler
        │   ├───EventListener
        │   ├───Fragment
        │   ├───HttpCache
        │   ├───Resources
        │   │   ├───config
        │   │   │   └───schema
        │   │   ├───meta
        │   │   ├───public
        │   │   │   ├───css
        │   │   │   └───images
        │   │   └───views
        │   │       ├───Form
        │   │       └───FormTable
        │   ├───Routing
        │   ├───Templating
        │   │   ├───Asset
        │   │   ├───Helper
        │   │   └───Loader
        │   ├───Test
        │   ├───Tests
        │   │   ├───CacheWarmer
        │   │   ├───Command
        │   │   │   └───CacheClearCommand
        │   │   │       └───Fixture
        │   │   ├───Console
        │   │   │   └───Descriptor
        │   │   ├───Controller
        │   │   ├───DependencyInjection
        │   │   │   ├───Compiler
        │   │   │   └───Fixtures
        │   │   │       ├───php
        │   │   │       ├───TestBundle
        │   │   │       │   └───Resources
        │   │   │       │       └───config
        │   │   │       ├───xml
        │   │   │       └───yml
        │   │   ├───Fixtures
        │   │   │   ├───BaseBundle
        │   │   │   │   └───Resources
        │   │   │   │       └───views
        │   │   │   │           └───controller
        │   │   │   ├───Descriptor
        │   │   │   ├───Resources
        │   │   │   │   ├───BaseBundle
        │   │   │   │   │   └───views
        │   │   │   │   │       └───controller
        │   │   │   │   ├───translations
        │   │   │   │   └───views
        │   │   │   └───TestBundle
        │   │   │       ├───Fabpot
        │   │   │       │   └───FooBundle
        │   │   │       │       └───Controller
        │   │   │       ├───FooBundle
        │   │   │       │   └───Controller
        │   │   │       │       ├───Sub
        │   │   │       │       └───Test
        │   │   │       └───Sensio
        │   │   │           ├───Cms
        │   │   │           │   └───FooBundle
        │   │   │           │       └───Controller
        │   │   │           └───FooBundle
        │   │   │               └───Controller
        │   │   ├───Fragment
        │   │   ├───Functional
        │   │   │   ├───app
        │   │   │   │   ├───config
        │   │   │   │   ├───ConfigDump
        │   │   │   │   ├───Fragment
        │   │   │   │   ├───Profiler
        │   │   │   │   ├───Resources
        │   │   │   │   └───Session
        │   │   │   └───Bundle
        │   │   │       └───TestBundle
        │   │   │           ├───Controller
        │   │   │           ├───DependencyInjection
        │   │   │           │   └───Config
        │   │   │           └───Resources
        │   │   │               └───config
        │   │   ├───Routing
        │   │   ├───Templating
        │   │   │   ├───Helper
        │   │   │   │   ├───Fixtures
        │   │   │   │   └───Resources
        │   │   │   │       ├───Child
        │   │   │   │       ├───Custom
        │   │   │   │       └───Parent
        │   │   │   └───Loader
        │   │   ├───Translation
        │   │   └───Validator
        │   ├───Translation
        │   └───Validator
        ├───http-foundation
        │   ├───File
        │   │   ├───Exception
        │   │   └───MimeType
        │   ├───Resources
        │   │   └───stubs
        │   ├───Session
        │   │   ├───Attribute
        │   │   ├───Flash
        │   │   └───Storage
        │   │       ├───Handler
        │   │       └───Proxy
        │   └───Tests
        │       ├───File
        │       │   ├───Fixtures
        │       │   │   └───directory
        │       │   └───MimeType
        │       └───Session
        │           ├───Attribute
        │           ├───Flash
        │           └───Storage
        │               ├───Handler
        │               └───Proxy
        ├───http-kernel
        │   ├───Bundle
        │   ├───CacheClearer
        │   ├───CacheWarmer
        │   ├───Config
        │   ├───Controller
        │   ├───DataCollector
        │   │   └───Util
        │   ├───Debug
        │   ├───DependencyInjection
        │   ├───Event
        │   ├───EventListener
        │   ├───Exception
        │   ├───Fragment
        │   ├───HttpCache
        │   ├───Log
        │   ├───Profiler
        │   └───Tests
        │       ├───Bundle
        │       ├───CacheClearer
        │       ├───CacheWarmer
        │       ├───Config
        │       ├───Controller
        │       ├───DataCollector
        │       │   └───Util
        │       ├───Debug
        │       ├───DependencyInjection
        │       ├───EventListener
        │       ├───Fixtures
        │       │   ├───BaseBundle
        │       │   │   └───Resources
        │       │   ├───Bundle1Bundle
        │       │   │   └───Resources
        │       │   ├───Bundle2Bundle
        │       │   ├───ChildBundle
        │       │   │   └───Resources
        │       │   ├───ExtensionAbsentBundle
        │       │   ├───ExtensionLoadedBundle
        │       │   │   └───DependencyInjection
        │       │   ├───ExtensionNotValidBundle
        │       │   │   └───DependencyInjection
        │       │   ├───ExtensionPresentBundle
        │       │   │   ├───Command
        │       │   │   └───DependencyInjection
        │       │   └───Resources
        │       │       ├───BaseBundle
        │       │       ├───Bundle1Bundle
        │       │       ├───ChildBundle
        │       │       └───FooBundle
        │       ├───Fragment
        │       ├───HttpCache
        │       └───Profiler
        │           └───Mock
        ├───routing
        │   ├───Annotation
        │   ├───Exception
        │   ├───Generator
        │   │   └───Dumper
        │   ├───Loader
        │   │   └───schema
        │   │       └───routing
        │   ├───Matcher
        │   │   └───Dumper
        │   └───Tests
        │       ├───Annotation
        │       ├───Fixtures
        │       │   ├───AnnotatedClasses
        │       │   ├───dumper
        │       │   └───OtherAnnotatedClasses
        │       ├───Generator
        │       │   └───Dumper
        │       ├───Loader
        │       └───Matcher
        │           └───Dumper
        ├───security
        │   └───Symfony
        │       └───Component
        │           └───Security
        │               ├───Acl
        │               │   ├───Dbal
        │               │   ├───Domain
        │               │   ├───Exception
        │               │   ├───Model
        │               │   ├───Permission
        │               │   ├───Resources
        │               │   │   ├───bin
        │               │   │   └───schema
        │               │   └───Voter
        │               ├───Core
        │               │   ├───Authentication
        │               │   │   ├───Provider
        │               │   │   ├───RememberMe
        │               │   │   └───Token
        │               │   ├───Authorization
        │               │   │   └───Voter
        │               │   ├───Encoder
        │               │   ├───Event
        │               │   ├───Exception
        │               │   ├───Role
        │               │   ├───User
        │               │   ├───Util
        │               │   └───Validator
        │               │       └───Constraints
        │               ├───Http
        │               │   ├───Authentication
        │               │   ├───Authorization
        │               │   ├───EntryPoint
        │               │   ├───Event
        │               │   ├───Firewall
        │               │   ├───Logout
        │               │   ├───RememberMe
        │               │   └───Session
        │               ├───Resources
        │               │   └───translations
        │               └───Tests
        │                   ├───Acl
        │                   │   ├───Dbal
        │                   │   ├───Domain
        │                   │   ├───Permission
        │                   │   └───Voter
        │                   ├───Core
        │                   │   ├───Authentication
        │                   │   │   ├───Provider
        │                   │   │   ├───RememberMe
        │                   │   │   └───Token
        │                   │   ├───Authorization
        │                   │   │   └───Voter
        │                   │   ├───Encoder
        │                   │   ├───Role
        │                   │   ├───User
        │                   │   ├───Util
        │                   │   └───Validator
        │                   │       └───Constraints
        │                   └───Http
        │                       ├───Authentication
        │                       ├───EntryPoint
        │                       ├───Firewall
        │                       ├───Logout
        │                       ├───RememberMe
        │                       └───Session
        ├───security-core
        │   ├───Authentication
        │   │   ├───Provider
        │   │   ├───RememberMe
        │   │   └───Token
        │   │       └───Storage
        │   ├───Authorization
        │   │   └───Voter
        │   ├───Encoder
        │   ├───Event
        │   ├───Exception
        │   ├───Resources
        │   │   └───translations
        │   ├───Role
        │   ├───Tests
        │   │   ├───Authentication
        │   │   │   ├───Provider
        │   │   │   ├───RememberMe
        │   │   │   └───Token
        │   │   │       └───Storage
        │   │   ├───Authorization
        │   │   │   └───Voter
        │   │   ├───Encoder
        │   │   ├───Exception
        │   │   ├───Role
        │   │   ├───User
        │   │   ├───Util
        │   │   └───Validator
        │   │       └───Constraints
        │   ├───User
        │   ├───Util
        │   └───Validator
        │       └───Constraints
        ├───security-csrf
        │   ├───Exception
        │   ├───Tests
        │   │   ├───TokenGenerator
        │   │   └───TokenStorage
        │   ├───TokenGenerator
        │   └───TokenStorage
        ├───stopwatch
        │   └───Tests
        ├───templating
        │   ├───Asset
        │   ├───Helper
        │   ├───Loader
        │   ├───Storage
        │   └───Tests
        │       ├───Fixtures
        │       │   └───templates
        │       ├───Helper
        │       ├───Loader
        │       └───Storage
        └───translation
            ├───Catalogue
            ├───DataCollector
            ├───Dumper
            ├───Exception
            ├───Extractor
            ├───Loader
            │   └───schema
            │       └───dic
            │           └───xliff-core
            ├───Tests
            │   ├───Catalogue
            │   ├───DataCollector
            │   ├───Dumper
            │   ├───fixtures
            │   │   └───resourcebundle
            │   │       ├───corrupted
            │   │       ├───dat
            │   │       └───res
            │   └───Loader
            └───Writer
project root folder
|-- config
|   |-- xml
|   `-- yaml
`-- src
然后我添加了4个目录:-

└───vendor
    ├───bin
    ├───composer
    ├───doctrine
    │   ├───annotations
    │   │   └───lib
    │   │       └───Doctrine
    │   │           └───Common
    │   │               └───Annotations
    │   │                   └───Annotation
    │   ├───cache
    │   │   ├───lib
    │   │   │   └───Doctrine
    │   │   │       └───Common
    │   │   │           └───Cache
    │   │   └───tests
    │   │       ├───Doctrine
    │   │       │   └───Tests
    │   │       │       └───Common
    │   │       │           └───Cache
    │   │       └───travis
    │   ├───collections
    │   │   ├───lib
    │   │   │   └───Doctrine
    │   │   │       └───Common
    │   │   │           └───Collections
    │   │   │               └───Expr
    │   │   └───tests
    │   │       └───Doctrine
    │   │           └───Tests
    │   │               └───Common
    │   │                   └───Collections
    │   ├───common
    │   │   ├───lib
    │   │   │   ├───Doctrine
    │   │   │   │   └───Common
    │   │   │   │       ├───Persistence
    │   │   │   │       │   ├───Event
    │   │   │   │       │   └───Mapping
    │   │   │   │       │       └───Driver
    │   │   │   │       ├───Proxy
    │   │   │   │       │   └───Exception
    │   │   │   │       ├───Reflection
    │   │   │   │       └───Util
    │   │   │   └───vendor
    │   │   │       └───doctrine-build-common
    │   │   └───tests
    │   │       └───Doctrine
    │   │           └───Tests
    │   │               └───Common
    │   │                   ├───ClassLoaderTest
    │   │                   ├───Persistence
    │   │                   │   └───Mapping
    │   │                   │       ├───_custom_ns
    │   │                   │       │   ├───dir
    │   │                   │       │   │   └───sub
    │   │                   │       │   │       └───subsub
    │   │                   │       │   └───dot
    │   │                   │       └───_files
    │   │                   │           └───annotation
    │   │                   ├───Proxy
    │   │                   ├───Reflection
    │   │                   │   └───Dummies
    │   │                   └───Util
    │   ├───dbal
    │   │   ├───bin
    │   │   └───lib
    │   │       ├───Doctrine
    │   │       │   └───DBAL
    │   │       │       ├───Cache
    │   │       │       ├───Connections
    │   │       │       ├───Driver
    │   │       │       │   ├───DrizzlePDOMySql
    │   │       │       │   ├───IBMDB2
    │   │       │       │   ├───Mysqli
    │   │       │       │   ├───OCI8
    │   │       │       │   ├───PDOIbm
    │   │       │       │   ├───PDOMySql
    │   │       │       │   ├───PDOOracle
    │   │       │       │   ├───PDOPgSql
    │   │       │       │   ├───PDOSqlite
    │   │       │       │   ├───PDOSqlsrv
    │   │       │       │   ├───SQLAnywhere
    │   │       │       │   └───SQLSrv
    │   │       │       ├───Event
    │   │       │       │   └───Listeners
    │   │       │       ├───Exception
    │   │       │       ├───Id
    │   │       │       ├───Logging
    │   │       │       ├───Platforms
    │   │       │       │   └───Keywords
    │   │       │       ├───Portability
    │   │       │       ├───Query
    │   │       │       │   └───Expression
    │   │       │       ├───Schema
    │   │       │       │   ├───Synchronizer
    │   │       │       │   └───Visitor
    │   │       │       ├───Sharding
    │   │       │       │   ├───ShardChoser
    │   │       │       │   └───SQLAzure
    │   │       │       │       └───Schema
    │   │       │       ├───Tools
    │   │       │       │   └───Console
    │   │       │       │       ├───Command
    │   │       │       │       └───Helper
    │   │       │       └───Types
    │   │       └───vendor
    │   │           ├───doctrine-build-common
    │   │           ├───doctrine-common
    │   │           └───Symfony
    │   │               └───Component
    │   │                   └───Console
    │   ├───doctrine-bundle
    │   │   ├───Command
    │   │   │   └───Proxy
    │   │   ├───Controller
    │   │   ├───DataCollector
    │   │   ├───DependencyInjection
    │   │   │   └───Compiler
    │   │   ├───Mapping
    │   │   ├───Resources
    │   │   │   ├───config
    │   │   │   │   └───schema
    │   │   │   ├───doc
    │   │   │   └───views
    │   │   │       └───Collector
    │   │   ├───Tests
    │   │   │   ├───Command
    │   │   │   ├───DataCollector
    │   │   │   ├───DependencyInjection
    │   │   │   │   └───Fixtures
    │   │   │   │       ├───Bundles
    │   │   │   │       │   ├───AnnotationsBundle
    │   │   │   │       │   │   └───Entity
    │   │   │   │       │   ├───Vendor
    │   │   │   │       │   │   └───AnnotationsBundle
    │   │   │   │       │   │       └───Entity
    │   │   │   │       │   ├───XmlBundle
    │   │   │   │       │   │   ├───Entity
    │   │   │   │       │   │   └───Resources
    │   │   │   │       │   │       └───config
    │   │   │   │       │   │           └───doctrine
    │   │   │   │       │   └───YamlBundle
    │   │   │   │       │       ├───Entity
    │   │   │   │       │       └───Resources
    │   │   │   │       │           └───config
    │   │   │   │       │               └───doctrine
    │   │   │   │       └───config
    │   │   │   │           ├───xml
    │   │   │   │           └───yml
    │   │   │   ├───Mapping
    │   │   │   └───Twig
    │   │   └───Twig
    │   ├───doctrine-cache-bundle
    │   │   └───Doctrine
    │   │       └───Bundle
    │   │           └───DoctrineCacheBundle
    │   │               ├───Acl
    │   │               │   └───Model
    │   │               ├───Command
    │   │               ├───DependencyInjection
    │   │               │   └───Definition
    │   │               ├───Resources
    │   │               │   └───config
    │   │               │       └───schema
    │   │               └───Tests
    │   │                   ├───Acl
    │   │                   │   └───Model
    │   │                   ├───DependencyInjection
    │   │                   │   └───Fixtures
    │   │                   │       ├───Bundles
    │   │                   │       │   ├───XmlBundle
    │   │                   │       │   └───YamlBundle
    │   │                   │       ├───Cache
    │   │                   │       ├───config
    │   │                   │       │   ├───xml
    │   │                   │       │   └───yml
    │   │                   │       └───Definition
    │   │                   ├───Functional
    │   │                   │   ├───Command
    │   │                   │   └───Fixtures
    │   │                   │       └───config
    │   │                   └───travis
    │   ├───inflector
    │   │   ├───lib
    │   │   │   └───Doctrine
    │   │   │       └───Common
    │   │   │           └───Inflector
    │   │   └───tests
    │   │       └───Doctrine
    │   │           └───Tests
    │   │               └───Common
    │   │                   └───Inflector
    │   └───lexer
    │       └───lib
    │           └───Doctrine
    │               └───Common
    │                   └───Lexer
    ├───jdorn
    │   └───sql-formatter
    │       ├───examples
    │       ├───lib
    │       └───tests
    ├───psr
    │   └───log
    │       └───Psr
    │           └───Log
    │               └───Test
    └───symfony
        ├───asset
        │   ├───Context
        │   ├───Exception
        │   ├───Tests
        │   └───VersionStrategy
        ├───config
        │   ├───Definition
        │   │   ├───Builder
        │   │   ├───Dumper
        │   │   └───Exception
        │   ├───Exception
        │   ├───Loader
        │   ├───Resource
        │   ├───Tests
        │   │   ├───Definition
        │   │   │   ├───Builder
        │   │   │   └───Dumper
        │   │   ├───Exception
        │   │   ├───Fixtures
        │   │   │   ├───Again
        │   │   │   ├───Builder
        │   │   │   ├───Configuration
        │   │   │   └───Util
        │   │   ├───Loader
        │   │   ├───Resource
        │   │   └───Util
        │   └───Util
        ├───console
        │   ├───Command
        │   ├───Descriptor
        │   ├───Event
        │   ├───Formatter
        │   ├───Helper
        │   ├───Input
        │   ├───Logger
        │   ├───Output
        │   ├───Question
        │   ├───Resources
        │   │   └───bin
        │   ├───Style
        │   ├───Tester
        │   └───Tests
        │       ├───Command
        │       ├───Descriptor
        │       ├───Fixtures
        │       │   └───Style
        │       │       └───SymfonyStyle
        │       │           ├───command
        │       │           └───output
        │       ├───Formatter
        │       ├───Helper
        │       ├───Input
        │       ├───Logger
        │       ├───Output
        │       ├───Style
        │       └───Tester
        ├───debug
        │   ├───Exception
        │   ├───FatalErrorHandler
        │   ├───Resources
        │   │   └───ext
        │   │       └───tests
        │   └───Tests
        │       ├───Exception
        │       ├───FatalErrorHandler
        │       ├───Fixtures
        │       │   └───psr4
        │       └───Fixtures2
        ├───dependency-injection
        │   ├───Compiler
        │   ├───Dumper
        │   ├───Exception
        │   ├───Extension
        │   ├───LazyProxy
        │   │   ├───Instantiator
        │   │   └───PhpDumper
        │   ├───Loader
        │   │   └───schema
        │   │       └───dic
        │   │           └───services
        │   ├───ParameterBag
        │   └───Tests
        │       ├───Compiler
        │       ├───Dumper
        │       ├───Extension
        │       ├───Fixtures
        │       │   ├───containers
        │       │   ├───graphviz
        │       │   ├───includes
        │       │   │   └───schema
        │       │   ├───ini
        │       │   ├───php
        │       │   ├───xml
        │       │   │   ├───extension1
        │       │   │   ├───extension2
        │       │   │   └───extensions
        │       │   └───yaml
        │       ├───LazyProxy
        │       │   ├───Instantiator
        │       │   └───PhpDumper
        │       ├───Loader
        │       └───ParameterBag
        ├───doctrine-bridge
        │   ├───CacheWarmer
        │   ├───DataCollector
        │   ├───DataFixtures
        │   ├───DependencyInjection
        │   │   ├───CompilerPass
        │   │   └───Security
        │   │       └───UserProvider
        │   ├───ExpressionLanguage
        │   ├───Form
        │   │   ├───ChoiceList
        │   │   ├───DataTransformer
        │   │   ├───EventListener
        │   │   └───Type
        │   ├───HttpFoundation
        │   ├───Logger
        │   ├───Security
        │   │   ├───RememberMe
        │   │   └───User
        │   ├───Test
        │   ├───Tests
        │   │   ├───DataCollector
        │   │   ├───DataFixtures
        │   │   ├───DependencyInjection
        │   │   │   └───CompilerPass
        │   │   ├───ExpressionLanguage
        │   │   ├───Fixtures
        │   │   ├───Form
        │   │   │   ├───ChoiceList
        │   │   │   ├───DataTransformer
        │   │   │   └───Type
        │   │   ├───HttpFoundation
        │   │   ├───Logger
        │   │   ├───Security
        │   │   │   └───User
        │   │   └───Validator
        │   │       └───Constraints
        │   └───Validator
        │       └───Constraints
        ├───event-dispatcher
        │   ├───Debug
        │   ├───DependencyInjection
        │   └───Tests
        │       ├───Debug
        │       └───DependencyInjection
        ├───filesystem
        │   ├───Exception
        │   └───Tests
        ├───framework-bundle
        │   ├───CacheWarmer
        │   ├───Command
        │   ├───Console
        │   │   ├───Descriptor
        │   │   └───Helper
        │   ├───Controller
        │   ├───DataCollector
        │   ├───DependencyInjection
        │   │   └───Compiler
        │   ├───EventListener
        │   ├───Fragment
        │   ├───HttpCache
        │   ├───Resources
        │   │   ├───config
        │   │   │   └───schema
        │   │   ├───meta
        │   │   ├───public
        │   │   │   ├───css
        │   │   │   └───images
        │   │   └───views
        │   │       ├───Form
        │   │       └───FormTable
        │   ├───Routing
        │   ├───Templating
        │   │   ├───Asset
        │   │   ├───Helper
        │   │   └───Loader
        │   ├───Test
        │   ├───Tests
        │   │   ├───CacheWarmer
        │   │   ├───Command
        │   │   │   └───CacheClearCommand
        │   │   │       └───Fixture
        │   │   ├───Console
        │   │   │   └───Descriptor
        │   │   ├───Controller
        │   │   ├───DependencyInjection
        │   │   │   ├───Compiler
        │   │   │   └───Fixtures
        │   │   │       ├───php
        │   │   │       ├───TestBundle
        │   │   │       │   └───Resources
        │   │   │       │       └───config
        │   │   │       ├───xml
        │   │   │       └───yml
        │   │   ├───Fixtures
        │   │   │   ├───BaseBundle
        │   │   │   │   └───Resources
        │   │   │   │       └───views
        │   │   │   │           └───controller
        │   │   │   ├───Descriptor
        │   │   │   ├───Resources
        │   │   │   │   ├───BaseBundle
        │   │   │   │   │   └───views
        │   │   │   │   │       └───controller
        │   │   │   │   ├───translations
        │   │   │   │   └───views
        │   │   │   └───TestBundle
        │   │   │       ├───Fabpot
        │   │   │       │   └───FooBundle
        │   │   │       │       └───Controller
        │   │   │       ├───FooBundle
        │   │   │       │   └───Controller
        │   │   │       │       ├───Sub
        │   │   │       │       └───Test
        │   │   │       └───Sensio
        │   │   │           ├───Cms
        │   │   │           │   └───FooBundle
        │   │   │           │       └───Controller
        │   │   │           └───FooBundle
        │   │   │               └───Controller
        │   │   ├───Fragment
        │   │   ├───Functional
        │   │   │   ├───app
        │   │   │   │   ├───config
        │   │   │   │   ├───ConfigDump
        │   │   │   │   ├───Fragment
        │   │   │   │   ├───Profiler
        │   │   │   │   ├───Resources
        │   │   │   │   └───Session
        │   │   │   └───Bundle
        │   │   │       └───TestBundle
        │   │   │           ├───Controller
        │   │   │           ├───DependencyInjection
        │   │   │           │   └───Config
        │   │   │           └───Resources
        │   │   │               └───config
        │   │   ├───Routing
        │   │   ├───Templating
        │   │   │   ├───Helper
        │   │   │   │   ├───Fixtures
        │   │   │   │   └───Resources
        │   │   │   │       ├───Child
        │   │   │   │       ├───Custom
        │   │   │   │       └───Parent
        │   │   │   └───Loader
        │   │   ├───Translation
        │   │   └───Validator
        │   ├───Translation
        │   └───Validator
        ├───http-foundation
        │   ├───File
        │   │   ├───Exception
        │   │   └───MimeType
        │   ├───Resources
        │   │   └───stubs
        │   ├───Session
        │   │   ├───Attribute
        │   │   ├───Flash
        │   │   └───Storage
        │   │       ├───Handler
        │   │       └───Proxy
        │   └───Tests
        │       ├───File
        │       │   ├───Fixtures
        │       │   │   └───directory
        │       │   └───MimeType
        │       └───Session
        │           ├───Attribute
        │           ├───Flash
        │           └───Storage
        │               ├───Handler
        │               └───Proxy
        ├───http-kernel
        │   ├───Bundle
        │   ├───CacheClearer
        │   ├───CacheWarmer
        │   ├───Config
        │   ├───Controller
        │   ├───DataCollector
        │   │   └───Util
        │   ├───Debug
        │   ├───DependencyInjection
        │   ├───Event
        │   ├───EventListener
        │   ├───Exception
        │   ├───Fragment
        │   ├───HttpCache
        │   ├───Log
        │   ├───Profiler
        │   └───Tests
        │       ├───Bundle
        │       ├───CacheClearer
        │       ├───CacheWarmer
        │       ├───Config
        │       ├───Controller
        │       ├───DataCollector
        │       │   └───Util
        │       ├───Debug
        │       ├───DependencyInjection
        │       ├───EventListener
        │       ├───Fixtures
        │       │   ├───BaseBundle
        │       │   │   └───Resources
        │       │   ├───Bundle1Bundle
        │       │   │   └───Resources
        │       │   ├───Bundle2Bundle
        │       │   ├───ChildBundle
        │       │   │   └───Resources
        │       │   ├───ExtensionAbsentBundle
        │       │   ├───ExtensionLoadedBundle
        │       │   │   └───DependencyInjection
        │       │   ├───ExtensionNotValidBundle
        │       │   │   └───DependencyInjection
        │       │   ├───ExtensionPresentBundle
        │       │   │   ├───Command
        │       │   │   └───DependencyInjection
        │       │   └───Resources
        │       │       ├───BaseBundle
        │       │       ├───Bundle1Bundle
        │       │       ├───ChildBundle
        │       │       └───FooBundle
        │       ├───Fragment
        │       ├───HttpCache
        │       └───Profiler
        │           └───Mock
        ├───routing
        │   ├───Annotation
        │   ├───Exception
        │   ├───Generator
        │   │   └───Dumper
        │   ├───Loader
        │   │   └───schema
        │   │       └───routing
        │   ├───Matcher
        │   │   └───Dumper
        │   └───Tests
        │       ├───Annotation
        │       ├───Fixtures
        │       │   ├───AnnotatedClasses
        │       │   ├───dumper
        │       │   └───OtherAnnotatedClasses
        │       ├───Generator
        │       │   └───Dumper
        │       ├───Loader
        │       └───Matcher
        │           └───Dumper
        ├───security
        │   └───Symfony
        │       └───Component
        │           └───Security
        │               ├───Acl
        │               │   ├───Dbal
        │               │   ├───Domain
        │               │   ├───Exception
        │               │   ├───Model
        │               │   ├───Permission
        │               │   ├───Resources
        │               │   │   ├───bin
        │               │   │   └───schema
        │               │   └───Voter
        │               ├───Core
        │               │   ├───Authentication
        │               │   │   ├───Provider
        │               │   │   ├───RememberMe
        │               │   │   └───Token
        │               │   ├───Authorization
        │               │   │   └───Voter
        │               │   ├───Encoder
        │               │   ├───Event
        │               │   ├───Exception
        │               │   ├───Role
        │               │   ├───User
        │               │   ├───Util
        │               │   └───Validator
        │               │       └───Constraints
        │               ├───Http
        │               │   ├───Authentication
        │               │   ├───Authorization
        │               │   ├───EntryPoint
        │               │   ├───Event
        │               │   ├───Firewall
        │               │   ├───Logout
        │               │   ├───RememberMe
        │               │   └───Session
        │               ├───Resources
        │               │   └───translations
        │               └───Tests
        │                   ├───Acl
        │                   │   ├───Dbal
        │                   │   ├───Domain
        │                   │   ├───Permission
        │                   │   └───Voter
        │                   ├───Core
        │                   │   ├───Authentication
        │                   │   │   ├───Provider
        │                   │   │   ├───RememberMe
        │                   │   │   └───Token
        │                   │   ├───Authorization
        │                   │   │   └───Voter
        │                   │   ├───Encoder
        │                   │   ├───Role
        │                   │   ├───User
        │                   │   ├───Util
        │                   │   └───Validator
        │                   │       └───Constraints
        │                   └───Http
        │                       ├───Authentication
        │                       ├───EntryPoint
        │                       ├───Firewall
        │                       ├───Logout
        │                       ├───RememberMe
        │                       └───Session
        ├───security-core
        │   ├───Authentication
        │   │   ├───Provider
        │   │   ├───RememberMe
        │   │   └───Token
        │   │       └───Storage
        │   ├───Authorization
        │   │   └───Voter
        │   ├───Encoder
        │   ├───Event
        │   ├───Exception
        │   ├───Resources
        │   │   └───translations
        │   ├───Role
        │   ├───Tests
        │   │   ├───Authentication
        │   │   │   ├───Provider
        │   │   │   ├───RememberMe
        │   │   │   └───Token
        │   │   │       └───Storage
        │   │   ├───Authorization
        │   │   │   └───Voter
        │   │   ├───Encoder
        │   │   ├───Exception
        │   │   ├───Role
        │   │   ├───User
        │   │   ├───Util
        │   │   └───Validator
        │   │       └───Constraints
        │   ├───User
        │   ├───Util
        │   └───Validator
        │       └───Constraints
        ├───security-csrf
        │   ├───Exception
        │   ├───Tests
        │   │   ├───TokenGenerator
        │   │   └───TokenStorage
        │   ├───TokenGenerator
        │   └───TokenStorage
        ├───stopwatch
        │   └───Tests
        ├───templating
        │   ├───Asset
        │   ├───Helper
        │   ├───Loader
        │   ├───Storage
        │   └───Tests
        │       ├───Fixtures
        │       │   └───templates
        │       ├───Helper
        │       ├───Loader
        │       └───Storage
        └───translation
            ├───Catalogue
            ├───DataCollector
            ├───Dumper
            ├───Exception
            ├───Extractor
            ├───Loader
            │   └───schema
            │       └───dic
            │           └───xliff-core
            ├───Tests
            │   ├───Catalogue
            │   ├───DataCollector
            │   ├───Dumper
            │   ├───fixtures
            │   │   └───resourcebundle
            │   │       ├───corrupted
            │   │       ├───dat
            │   │       └───res
            │   └───Loader
            └───Writer
project root folder
|-- config
|   |-- xml
|   `-- yaml
`-- src
我在项目的根文件夹中添加了
bootstrap.php
文件,内容如下:-

需要一次“vendor/autoload.php”

做完这一切之后。现在,当我在cmd中运行以下命令时

vendor\bin\doctrine orm:schema-tool:create
然后它说:-

'vendor\bin\doctrine' is not recognized as an internal or external command,
operable program or batch file.
你知道为什么吗

更新:-


包括文件在内的完整目录列表可在此处找到:

您可以将此目录(“yourProjectDirectory\vendor\bin\”)添加到Windows操作系统上的系统路径环境变量中。然后可以调用“$orm:schema工具:create”

请执行以下命令:

.\vendor\bin\doctrine-migrations.bat migrations:generate
请拨打.bat文件